AUTHOR=Gutierrez Rommel , Villegas-Ch William , Govea Jaime TITLE=Modular middleware for IoT: scalability, interoperability and energy efficiency in smart campus JOURNAL=Frontiers in Communications and Networks VOLUME=Volume 6 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/communications-and-networks/articles/10.3389/frcmn.2025.1672617 DOI=10.3389/frcmn.2025.1672617 ISSN=2673-530X ABSTRACT=The rapid expansion of IoT devices has led to increasingly complex networks, such as Smart Campuses, where ensuring interoperability, scalability, and energy efficiency becomes crucial. Existing middleware solutions, such as Z-Wave and LoRaWAN, have proven effective in specific applications but fail to address the diverse demands of dense and heterogeneous Internet of Things (IoT) environments. The limited scalability of Z-Wave (232 devices) and the high latency of LoRaWAN (150 ms) highlight the need for a more comprehensive solution. This study presents a middleware designed to overcome these limitations through a modular, microservices-based architecture. The system enables dynamic protocol translation and adaptive resource management, demonstrating robust performance with 120 devices deployed and validated in a Smart Campus scenario. Additionally, simulations using NS-3 extended the evaluation to 500 virtual devices, supporting scalability analysis under varying traffic and heterogeneity conditions. The middleware incorporates optimization strategies, such as data compression and adaptive task prioritization, to improve energy efficiency and operational performance. Experimental validation in a controlled environment demonstrated a 26.7% reduction in power consumption for optimized nodes, achieving an average of 60 W compared to 80 W for non-optimized nodes. Response times averaged 130 ms on optimized nodes, outperforming LoRaWAN while achieving a 94% interoperability success rate. Deployment in a real Smart Campus confirmed the robustness of the middleware, maintaining consistent performance under dynamic conditions and in the presence of external interference.