IoT-Based UPS Device Electricity Usage Monitoring System with MQTT Protocol
DOI:
https://doi.org/10.30871/jaic.v9i4.9530Keywords:
Electric Power Monitoring, Internet of Things (IoT), Message Queuing Telemetry Transport (MQTT), Real-Time Monitoring, Uninterruptible Power Supply (UPS)Abstract
The continuity of network device operations heavily relies on stable power supply, especially in digital environments that demand uninterrupted connectivity. One commonly used solution to ensure power continuity is the Uninterruptible Power Supply (UPS). However, traditional UPS systems often lack real-time monitoring mechanisms, leaving users uninformed during the transition from main electricity to UPS power. To address this challenge, this study proposes the design of a UPS power consumption monitoring system based on the Internet of Things (IoT) using the Message Queuing Telemetry Transport (MQTT) communication protocol. The system integrates a PZEM-004T power sensor and ESP32 microcontroller to read electrical parameters such as voltage, current, and power in real-time, and displays the data through a digital dashboard built with Node-RED. The implementation results show that the system can automatically detect changes in power source status and record electrical parameters with an average error rate below 1%, both during normal grid operation and when switching to UPS power. This system is expected to serve as a practical and efficient solution for minimizing network downtime caused by power disruptions.
Downloads
References
[1] Pita, “Serba-serbi Pentingnya Implementasi Manajemen Jaringan Bagi Bisnis,” PT. Blue Power Technology. Accessed: Dec. 10, 2024. [Online]. Available: https://www.bluepowertechnology.com/news-blog/serba-serbi-pentingnya-implementasi-manajemen-jaringan-bagi-bisnis/
[2] J. P. M and D. BMeenakshi Sundaram, “Iot Based Power Monitoring System,” SSRG International Journal of Computer Science and Engineering, vol. 8, pp. 4–7, 2021, doi: 10.14445/23488387/IJCSE-V8I4P102.
[3] Z. Sun et al., “IoT Based Building Energy Monitoring and Controlling System Using LoRa Modulation and MQTT Protocol Low-Power Wide Area Network Construction Method Based on LoRa Technology for Agricultural Science and Technology Parks IoT Based Building Energy Monitoring and Controlling System Using LoRa Modulation and MQTT Protocol”, doi: 10.1088/1757-899X/1096/1/012069.
[4] Y. Apriani, M. Rais Asadullah, M. Hurairoh, U. Muhammadiyah Palembang, J. Jenderal Ahmad Yani, and U. Seberang Ulu, “Monitoring Uninterruptible Power Supply (UPS) Berbasis Internet Of Things (IoT),” vol. 9, no. 1, pp. 723–734, 2022.
[5] S. C. Prasath, N. Darwin, R. S. Ramkumar, S. Nithishkumar, and P. L. Somasundharam, “IoT-Powered UPS Battery Monitoring: Ensuring High availability and reliability for Critical Systems,” in E3S Web of Conferences, EDP Sciences, Jul. 2023. doi: 10.1051/e3sconf/202339904007.
[6] J. Grace Jency Gnanammal, J. R. Kheshore, P. V Anandam, R. R. Kamalakkannan, Y. R. Annie Beasent, and R. Royal, “IoT based smart UPS battery life monitoring system,” in International Conference on Computer Vision and Internet of Things 2023 (ICCVIoT’23), 2023, pp. 324–329. doi: 10.1049/icp.2023.2896.
[7] S. Kazadi, M. Thokozile, and K. A. Ogudo, “Design and Monitoring of a Voltage battery sensor of an Uninterruptible Power Supply (UPS) by means of an Arduino,” in 2020 IEEE PES/IAS PowerAfrica, 2020, pp. 1–5. doi: 10.1109/PowerAfrica49420.2020.9219950.
[8] A. S. Salunkhe, Y. K. Kanse, and S. S. Patil, “Internet of Things based Smart Energy Meter with ESP 32 Real Time Data Monitoring,” in 2022 International Conference on Electronics and Renewable Systems (ICEARS), 2022, pp. 446–451. doi: 10.1109/ICEARS53579.2022.9752144.
[9] R. Andri Atmoko, H. Jovan Wardhana, I. Sapta Muktabar, M. Izzun Ni, and Z. Pramudia Alfarhisi, “Real-Time Energy Monitoring and Management in Educational Institutions: A Case Study of Universitas Brawijaya,” International Journal on Smart Material and Mechatronics, vol. 11, no. 2, p. 2024, doi: 10.20342/IJSMM.11.2.
[10] A. S. Alexander, “Cloud-Based Mqtt Protocol For Power Monitoring And Socket Control System,” 2023.
[11] L. Shrinivasan and D. Samje, “UPS Power Measurement and Prediction Towards Video Surveillance Systems,” in 2022 IEEE 4th International Conference on Cybernetics, Cognition and Machine Learning Applications (ICCCMLA), 2022, pp. 381–385. doi: 10.1109/ICCCMLA56841.2022.9989002.
[12] G. P. Naik and A. U. Bapat , “A Brief Comparative Analysis on Application Layer Protocols of Internet of Things: MQTT, CoAP, AMQP and HTTP,” International Journal of Computer Science and Mobile Computing, vol. 9, no. 9, pp. 135–141, Sep. 2020, doi: 10.47760/ijcsmc.2020.v09i09.014.
[13] D. Silva, L. I. Carvalho, J. Soares, and R. C. Sofia, “A performance analysis of internet of things networking protocols: Evaluating MQTT, CoAP, OPC UA,” Applied Sciences (Switzerland), vol. 11, no. 11, Jun. 2021, doi: 10.3390/app11114879.
[14] J. M. Ramadhan, R. Mardiati, and I. N. Haq, “IoT Monitoring System for Solar Power Plant Based on MQTT Publisher / Subscriber Protocol,” Proceeding of 2021 7th International Conference on Wireless and Telematics, ICWT 2021, 2021, doi: 10.1109/ICWT52862.2021.9678503.
[15] K. A. Yasa et al., “IoT-based Electrical Power Recording using ESP32 and PZEM-004T Microcontrollers,” 2023, doi: 10.32996/jcsts.
[16] B. Demeianto et al., “Rancang Bangun Panel Automatic Transfer Switch (ATS) Pada Pembangkit Listrik Tenaga Surya Sebagai Catu Daya Kincir Air Pada Tambak Perikanan Design And Build Of Automatic Transfer Switch (ATS) Panel On Solar Power Plant As A Main Power Supply For Paddle Wheel Aerator At Fishery Pond,” 2022.
[17] A. Shodiq, S. Baqaruzi, and A. Muhtar, “Perancangan Sistem Monitoring dan Kontrol Daya Berbasis Internet Of Things,” ELECTRON : Jurnal Ilmiah Teknik Elektro, vol. 2, no. 1, pp. 18–26, May 2021, doi: 10.33019/electron.v2i1.2368.
[18] N. Setiaji et al., “Analisis Konsumsi Daya Dan Distribusi Tenaga Listrik.”
[19] A. Rizal Tama and S. Winardi, “Monitoring Arus Listrik Dan Kontrol Circuit Breaker Untuk Arus Lebih Berbasis Internet Of Things (IoT).”
[20] I. Surya et al., “Sistem monitoring beban listrik dan perbaikan faktor daya menggunakan PZEM004T dan dashboard Adafruit berbasis IoT,” JITEL (Jurnal Ilmiah Telekomunikasi, Elektronika, dan Listrik Tenaga), vol. 3, no. 3, pp. 235–246, Sep. 2023, doi: 10.35313/jitel.v3.i3.2023.235-246.
[21] C. Loeffler and E. Spears, “Electrical: uninterruptible power supply system,” Data Center Handbook: Plan, Design, Build, and Operations of a Smart Data Center, pp. 483–520, 2021.
[22] “VA Versus Watts | Eaton.” Accessed: Apr. 10, 2025. [Online]. Available: https://www.eaton.com/us/en-us/products/backup-power-ups-surge-it-power-distribution/backup-power-ups/va-versus-watts--eaton.html
[23] D. Subhash Patil, M. Mujtahid Ansari, N. S. Mahajan, and D. S. Patil, “Review of kVAh (Kilo Volt Ampere Hour) Billing-Pros and Cons to Utility and Consumers,” 2020. [Online]. Available: https://www.researchgate.net/publication/377575362
[24] “UniFi U6 Pro - Tech Specs.” Accessed: Apr. 12, 2025. [Online]. Available: https://techspecs.ui.com/unifi/wifi/u6-pro
[25] “UniFi Lite 8 PoE - Tech Specs.” Accessed: Apr. 12, 2025. [Online]. Available: https://techspecs.ui.com/unifi/switching/usw-lite-8-poe?subcategory=all-switching
[26] “MikroTik Routers and Wireless - Products: RB4011iGS+5HacQ2HnD-IN.” Accessed: Apr. 12, 2025. [Online]. Available: https://mikrotik.com/product/rb4011igs_5hacq2hnd_in
[27] R. Gunawan, T. Andhika, . S., and F. Hibatulloh, “Monitoring System for Soil Moisture, Temperature, pH and Automatic Watering of Tomato Plants Based on Internet of Things,” Telekontran : Jurnal Ilmiah Telekomunikasi, Kendali dan Elektronika Terapan, vol. 7, no. 1, pp. 66–78, Apr. 2019, doi: 10.34010/telekontran.v7i1.1640.
[28] F. Tanjung, S. T. Kismanti, M. Firdan Nurdin, and J. T. Mesin, “Analisis Konstruksi Rancang Bangun Mesin Uji Universal Menggunakan Sistem Komputasi”.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Adit Oktopryadin, Adi Purnama

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License (Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








