IoT-Based Electrical Power Monitoring and Control using NodeMCU and PZEM-004T for Energy Management in Small-Scale MSMEs
DOI:
https://doi.org/10.36456/wmdhxw30Keywords:
energy monitoring, IoT, NodeMCU, PZEM-004T, prepaid electricityAbstract
Efficient monitoring and management of electrical energy are important for small-scale micro, small, and medium enterprises (MSMEs). Conventional prepaid electricity monitoring requires users to inspect the meter directly, which is less practical for continuous monitoring. This study presents the design and implementation of an Internet of Things (IoT)-based electrical power monitoring and control prototype using a NodeMCU/ESP32 controller and PZEM-004T sensor. The system measures voltage, current, power, energy, frequency, and power factor, displays data locally through an I2C LCD, accepts prepaid-energy top-up input through a 4×4 keypad, and controls the electrical load using a relay. Blynk is used for real-time remote monitoring. Top-up values in Indonesian rupiah are converted into kWh using a fixed electricity tariff, while the energy balance is reduced according to measured consumption. Tests were performed by comparing the prototype with a digital watt meter and by evaluating top-up, balance reduction, relay control, and Blynk monitoring functions. The prototype successfully displayed electrical parameters in real time. At 60 min, the prototype measured 234.4 V, 0.2 A, 22 W, and 0.022 kWh, while the reference watt meter measured 232.4 V, 0.175 A, 21 W, and 0.021 kWh. The reported maximum errors were 1.52% for voltage, 14.29% for current, 6.28% for power, 10.00% for energy, 15.69% for power factor, and 0% for frequency. Top-up and relay-control tests were successful, and the five principal functional tests achieved a reported 100% success rate.
References
[1] D. Kurniawan, “IoT-Based Energy Monitoring System for Residential Electricity Consumption,” Journal of Electrical and Electronic Engineering, 2021.
[2] R. Putra and T. Hidayat, “Smart Energy Monitoring System Using IoT Platform for Small Business Efficiency,” International Journal of Power and Energy Systems, 2021.
[3] H. Hasannudin et al., “Performance Evaluation of PZEM-004T Sensor on IoT-Based Smart Monitoring System,” International Journal of Power Electronics and Drive Systems, 2022.
[4] M. Fadhilah, “Development of IoT-Based Blynk Platform for Real-Time Electrical Energy Monitoring,” Journal of Information Technology Systems, 2022.
[5] M. Suryanegara et al., “ESP8266-Based IoT Power Monitoring System,” International Journal of Advanced Computer Science, 2020.
[6] Z. Zainuddin and C. Chai, “IoT-Based Real-Time Electrical Power Monitoring and Control System,” International Journal of Electrical Engineering and Computer Science, 2023.
[7] Arduino Documentation, “ESP8266 and ESP32 with Arduino IDE,” Arduino.cc, 2023.
[8] Espressif Systems, “ESP8266 Technical Reference Manual,” Espressif Systems Inc., 2023.
[9] Espressif Systems, “ESP32 Series Datasheet,” Espressif Systems Inc., 2024.
[10] A. Kurniawan, R. A. Putra, and H. Santoso, “Implementation of ESP-Based IoT Systems for Monitoring Applications,” Journal of Embedded and IoT Systems, vol. 5, no. 2, pp. 50–60, 2023.
[11] F. Rahman, A. Nugroho, and E. Wijaya, “Performance Evaluation of ESP8266 for Internet of Things Applications,” International Journal of Smart Technology, vol. 4, no. 3, pp. 115–124, 2022.
[12] Peacefair, “PZEM-004T AC Digital Multifunction Power Meter Module Datasheet & User Manual,” Peacefair Electronic, 2020.
[13] A. Rahman et al., “Design of IoT-Based Electrical Energy Monitoring System Using PZEM Module,” Journal of Electrical and Power Systems, 2021.
[14] R. Putra and S. Nugroho, “Rancang Bangun Sistem Monitoring Konsumsi Energi Listrik Berbasis IoT Menggunakan PZEM-004T,” Jurnal Teknologi dan Sistem Informasi, 2022.
[15] A. Pratama, “Implementasi Platform Blynk pada Sistem Monitoring IoT,” Jurnal Teknologi Informasi, 2023.
[16] T. Nugroho and H. Putra, “Arsitektur Sistem Internet of Things Berbasis Cloud,” Jurnal Sistem Digital, 2022.
[17] D. Saputra and M. Andika, “Keamanan dan Autentikasi pada Sistem IoT Menggunakan Blynk,” Jurnal Rekayasa Komputer, 2023.
[18] B. Widodo, E. Hartono, and R. Setiawan, “Pengembangan Sistem Monitoring Real-Time Berbasis NodeMCU dan Blynk,” Jurnal Elektronika Terapan, 2024.
[19] BSN, “Standar Nasional Indonesia Instalasi Listrik Tegangan Rendah,” Badan Standardisasi Nasional, 2022.
[20] Rochman, Sagita. "Design Of Vertical Axis Savonius Windmill for Generating Electricity Using Permanent Magnet." Tibuana: Journal of Applied Industrial Engineering 3.01 (2020): 61-66.
[21] Winarno, Adi, Sagita Rochman, and Muhammad Thoyibin. "Rancang Bangun Sistem Otomatisasi Penyiraman Tanaman Tomat Berbasis Internet of Things." Voteteknika (Vocational Teknik Elektronika dan Informatika) 11 (2023): 473-480.
[22] Rochman, Sagita, and Danu Krama. "Arduino-Based Solar Water Pump Motor Control to Adjust Water Circulation in Hydroponic Plants." Best: Journal of Applied Electrical, Science and Technology 5.1 (2023): 15-20.
[23] Atmiasri, A., and S. Rochman. "Pendeteksi Logam Untuk Industri Makanan Berbasis PLC. Waktu: Jurnal Teknik UNIPA. Vol. 9 (1), 78-81." 2011.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Rizki julianto, Sagita Rochman

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.











