IoT System for Residential Energy Monitoring and Management: Design and Implementation

Authors

DOI:

https://doi.org/10.5753/jbcs.2026.6008

Keywords:

Internet of Things (IoT), energy management, smart homes, residential electricity consumption, cloud computing

Abstract

This study addresses the lack of integrated, secure, and scalable Home Energy Management Systems (HEMS) that combine appliance-level and circuit-level control while providing pilot-scale statistical analysis of energy savings under real-world conditions. We design and deploy a cloud-enabled IoT-based HEMS using ESP32 microcontrollers and PZEM-004T sensors, integrated through MQTT and Home Assistant on AWS. The system was evaluated in two residential households over several months. Compared with related work, the proposed solution integrates circuit-level actuation at the electrical distribution board, vendor-agnostic interoperability through Home Assistant, and a secure end-to-end data pipeline based on TLS encryption and broker-level authorization. In this pilot-scale evaluation (N=2), we observed a 9–10% reduction in monthly residential electricity consumption (p < 0.05), with a 95% confidence level, within the monitored households. An illustrative difference-in-differences (DiD) estimator suggests an additional reduction of 3.17 kWh/month under a single treated–control pairing. Measurement accuracy remained below 3% relative error when compared with official utility bills. These findings should be interpreted as preliminary evidence and technical validation rather than generalizable proof of population-wide energy savings. Overall, the proposed HEMS constitutes a reproducible reference implementation for secure monitoring and control, demonstrating its feasibility and potential for residential energy optimization in pilot-scale deployments.

Downloads

Download data is not yet available.

References

Al-muqarm, M. A. A., Ahmed, A., Hasan, A. A., and Zaid, A. (2022). Security and performance analysis of mqtt protocol with tls in iot networks. In International Conference on Engineering Technology and their Applications (IICETA). DOI: 10.1109/iiceta51758.2021.9717495.

Arroyo, R. and Angulo, J. (2022). Home automation as an application of energy efficiency in ecuador. dialnet.unirioja.esR Arroyo, J AnguloGICOS: Revista del Grupo de Investigaciones en Comunidad y Salud, 2022•dialnet.unirioja.es. Available at:[link].

CENACE, N. E. O. (2023). 2023 annual report. Available at:[link].

Condon, F., Martínez, J. M., Eltamaly, A. M., Kim, Y.-C., and Ahmed, M. A. (2022). Design and implementation of a cloud-iot-based home energy management system. Sensors, 23:176. DOI: 10.3390/s23010176.

Cuatin, R. A. G. and Azuero, C. A. P. (2022). Development of a mobile application for the automatic monitoring of electricity consumption in households. Avaialble at:[link].

Cuzme-Rodríguez, F., Madera-Rosero, R., Domínguez-Limaico, M., Jaramillo-Vinueza, D., Pupiales-Yépez, C., and Suárez-Zambrano, L. (2020). Administration and management platform of electricity consumption for home appliances based on iot. pages 12-22. Springer. DOI: 10.1007/978-3-030-32022-5_2.

El-Khozondar, H. J., Mtair, S. Y., Qoffa, K. O., Qasem, O. I., Munyarawi, A. H., Nassar, Y. F., Bayoumi, E. H. E., and El, A. A. E. B. A. (2024). A smart energy monitoring system using esp32 microcontroller. e-Prime-Advances in Electrical Engineering, Electronics and Energy, 9:100666. DOI: 10.1016/j.prime.2024.100666.

Heredia-Andrango, A., Cuzme-Rodríguez, F., Maya-Olalla, E., Domínguez-Limaico, H. M., and Jaramillo-Vinueza, E. (2024). Mitigating mqtt vulnerabilities in iot with open-source ids/ips: A practical approach. In Brazilian Technology Symposium, pages 13-22. Springer. DOI: 10.1007/978-3-031-92651-8_2.

Jakhar, N., Dahiya, O., Nandal, R., and Joshi, K. (2022). Exploration of technological advancements and iot in smart grid. pages 1247-1254. IEEE. DOI: 10.1109/ic3i56241.2022.10072723.

Joha, M. I., Nazim, M. S., and Zubair, M. I. (2023). Smart energy metering, control, and protection system for making a smart home using iot. pages 1-6. IEEE. DOI: 10.1109/iccit60459.2023.10441201.

Khan, S. and Mahadik, S. (2022). A comparative study of agile and waterfall software development methodologies. International Journal of Advanced Research in Science, Communication and Technology, 2(1):399. DOI: 10.48175/IJARSCT-5696.

Laghari, S. U. A., Li, W., Manickam, S., Nanda, P., Al-Ani, A. K., and Karuppayah, S. (2024). Securing mqtt ecosystem: Exploring vulnerabilities, mitigations, and future trajectories. IEEE Access, 12:139273-139289. DOI: 10.1109/access.2024.3412030.

Luna, J. A. A., Osuna-Millán, N., Parra, J. M. F., and Cisneros, R. F. R. (2022). Towards the selection of an appropriate project management methodology for it projects. Revista Ibérica de Sistemas e Tecnologias de Informação, pages 631-643. Available at:[link].

Ministry of Energy and Mines (2024). 2023 national energy balance. Available at:[link].

National Institute of Statistics and Census (INEC) (2024). Building statistics (esed) 2023. Available at:[link].

Palacios, A. (2020). Residential energy efficiency. Available at:[link].

Ramos-Males, P. J. and Bautista-Segovia, A. M. (2022). Energy efficiency: A strategy for household economy in ecuador. Dominio de las Ciencias, 8(2):1334-1346. DOI: 10.23857/dc.v8i2.2708.

Shaban, M. and Alsharekh, M. F. (2022). Design of a smart distribution panelboard using iot connectivity and machine learning techniques. Energies, 15:3658. DOI: 10.3390/en15103658.

Taghizad-Tavana, K., Ghanbari-Ghalehjoughi, M., Razzaghi-Asl, N., Nojavan, S., and ad Alizadeh, A. (2022). An overview of the architecture of home energy management system as microgrids, automation systems, communication protocols, security, and cyber challenges. Sustainability, 14:15938. DOI: 10.3390/su142315938.

Tagliaro, C., Komsic, M., Continella, A., Borgolte, K., and Lindorfer, M. (2024). Large-scale security analysis of real-world backend deployments speaking iot-focused protocols. In Proceedings of the 27th International Symposium on Research in Attacks, Intrusions and Defenses, pages 561-578. DOI: 10.1145/3678890.3678899.

Wongwut, K. and Angamnuaysiri, D. (2024). The development of real-time energy monitoring system using iot base. Journal of Applied Research on Science and Technology (JARST), 23:255911. DOI: 10.60101/jarst.2024.255911.

Downloads

Published

2026-05-07

How to Cite

Martínez-Morocho, J. D., Cuzme-Rodríguez, F., & Domínguez-Limaico, H. M. (2026). IoT System for Residential Energy Monitoring and Management: Design and Implementation. Journal of the Brazilian Computer Society, 32(1), 1258–1269. https://doi.org/10.5753/jbcs.2026.6008

Issue

Section

Regular Issue