IoT-Based Real-Time River Monitoring and Early Flood Warning Using ESP32 and HC-SR04
DOI:
https://doi.org/10.56741/jnest.v5i01.1252Keywords:
Blynk, Early Flood Warning, SP32, HC-SR04, IoT, River MonitoringAbstract
Floods remain one of the most frequent and destructive natural disasters in Indonesia, primarily caused by rising river water levels. This study presents a prototype of an IoT-based river water level monitoring system using an HC-SR04 ultrasonic sensor, an ESP32 microcontroller, and the Blynk platform for real-time monitoring and alerting. The system classifies water levels into three categories: safe, alert, and danger, triggering local alarms (buzzers) and smartphone notifications accordingly. Evaluation results show a high sensor accuracy of up to 99.7%, with a notification delay averaging 1.2 seconds and a buzzer response time of less than 0.5 seconds. The system has been tested through black box testing and field simulations and has shown reliable performance for early flood warnings. These findings demonstrate the system’s potential in enhancing flood preparedness, particularly in vulnerable communities. Future enhancements include deploying waterproof sensors and integrating additional alert platforms such as SMS or sirens.
Downloads
References
F. Arifin, A. Muhibuddin, and H. Saleh, “Mitigasi Kawasan Rawan Banjir Pada Daerah Aliran Sungai Jeneberang Dengan Menggunakan Sistem Informasi Geografis,” Urban Reg. Stud. J., vol. 6, no. 1, pp. 71–82, 2023, doi: 10.35965/ursj.v6i1.3813. DOI: https://doi.org/10.35965/ursj.v6i1.3813
N. Rindsfüser, A. P. Zischg, and M. Keiler, “Monitoring flood risk evolution: A systematic review,” iScience, vol. 27, no. 9, p. 110653, 2024, doi: https://doi.org/10.1016/j.isci.2024.110653. DOI: https://doi.org/10.1016/j.isci.2024.110653
L. Wang et al., “A review of the flood management: from flood control to flood resilience,” Heliyon, vol. 8, no. 11, p. e11763, 2022, doi: 10.1016/j.heliyon.2022.e11763. DOI: https://doi.org/10.1016/j.heliyon.2022.e11763
A. M. Abdulle, A. S. Ali, A. S. Ali, M. A. Ali, S. A. Kahie, and N. A. Mohamed, IoT-based river monitoring and alerting system to mitigate flood damage. INC, 2024. doi: 10.1016/B978-0-443-13268-1.00022-4.
R. Setiawan and M. Sujatmika, “Prototype Deteksi Banjir Menggunakan Sensor Ultrasonik, Dan Water Level Sensor Dengan Notifikasi Blynk,” J. Teknol. Dan Sist. Inf. Bisnis-JTEKSIS, vol. 4, no. 2, p. 462, 2022, [Online]. Available: https://doi.org/10.47233/jteksis.v4i2.573
W. Leong, “Internet of Things for Enhancing Public Safety, Disaster Response, and Emergency Management,” p. 61, 2025, doi: 10.3390/engproc2025092061. DOI: https://doi.org/10.3390/engproc2025092061
M. Anbarasan et al., “Detection of flood disaster system based on IoT, big data and convolutional deep neural network,” Comput. Commun., vol. 150, no. August 2019, pp. 150–157, 2020, doi: 10.1016/j.comcom.2019.11.022. DOI: https://doi.org/10.1016/j.comcom.2019.11.022
N. Syamsi, M. Ulfah, and D. Lesmideyarti, “Water Level Monitoring for Flood Early Mitigation Based on Internet of Things (IoT),” Tepian, vol. 5, no. 2, pp. 58–64, 2024, doi: 10.51967/tepian.v5i2.2504. DOI: https://doi.org/10.51967/tepian.v5i2.2504
A. M. Abdulle, A. S. Ali, A. S. Ali, M. A. Ali, S. A. Kahie, and N. A. Mohamed, “22 - IoT-based river monitoring and alerting system to mitigate flood damage,” in Advanced Studies in Complex Systems, F. B. T.-C. I. and B. in C. S. Al-Turjman, Ed., Morgan Kaufmann, 2024, pp. 233–243. doi: https://doi.org/10.1016/B978-0-443-13268-1.00022-4. DOI: https://doi.org/10.1016/B978-0-443-13268-1.00022-4
K. Sharma, D. Anand, M. Sabharwal, P. K. Tiwari, O. Cheikhrouhou, and T. Frikha, “A Disaster Management Framework Using Internet of Things-Based Interconnected Devices,” Math. Probl. Eng., vol. 2021, no. 1, p. 9916440, Jan. 2021, doi: https://doi.org/10.1155/2021/9916440. DOI: https://doi.org/10.1155/2021/9916440
M. Rohan, M. Khatun, M. Rahman, and A. Pathak, “Enhancing Flood Disaster Response Through Real-Time Monitoring and IoT: The Case of SentryLeaf,” Internet Things Cloud Comput., vol. 13, no. 1, pp. 1–14, 2025, doi: 10.11648/j.iotcc.20251301.11. DOI: https://doi.org/10.11648/j.iotcc.20251301.11
R. A. Priatim, M. Asri, and S. Abdussamad, “Rancang Bangun Prototipe Peringatan Dini Banjir Menggunakan Raspberry Pi Berbasis IoT,” Jambura J. Electr. Electron. Eng., vol. 5, no. 2, pp. 216–221, 2023, doi: 10.37905/jjeee.v5i2.19696. DOI: https://doi.org/10.37905/jjeee.v5i2.19696
L. A. Pratita, S. Nurcahyo, and H. K. Safitri, “Sistem Monitoring dan Kontrol Level Air pada Pengelolaan Sumber Daya Air Menggunakan Kontrol PID,” vol. 3, no. 3, pp. 132–141, 2024. DOI: https://doi.org/10.70609/metrotech.v3i3.5262
I. A. Wandi and A. Ashari, “Monitoring Ketinggian Air dan Curah Hujan Dalam Early Warning System Bencana Banjir Berbasis IoT,” IJEIS (Indonesian J. Electron. Instrum. Syst., vol. 13, no. 1, 2023, doi: 10.22146/ijeis.83569. DOI: https://doi.org/10.22146/ijeis.83569
F. D. Hanggara and R. D. Eka Putra, “Purwarupa Perangkat Deteksi Dini Banjir Berbasis Internet Of Things,” J. Inform. dan Rekayasa Elektron., vol. 4, no. 1, pp. 87–94, 2021, doi: 10.36595/jire.v4i1.349. DOI: https://doi.org/10.36595/jire.v4i1.349
A. M. Wicaksono, Y. Hasan, A. Rahman, I. O. Things, and S. Ultrasonik, “Rancang Bangun Sistem Pendeteksi Banjir pada Waduk Menggunakan Water Level Sensor Berbasis IOT (Internet of Thing),” vol. 15, no. x, pp. 173–177, 2021.
N. Pratama, U. Darusalam, and N. D. Nathasia, “Perancangan Sistem Monitoring Ketinggian Air Sebagai Pendeteksi Banjir Berbasis IoT Menggunakan Sensor Ultrasonik,” J. Media Inform. Budidarma, vol. 4, no. 1, p. 117, 2020, doi: 10.30865/mib.v4i1.1905. DOI: https://doi.org/10.30865/mib.v4i1.1905
Y. Herdiana and A. Triatna, “Prototype Monitoring Ketinggian Air Berbasis Internet of Things Menggunakan Blynk Dan Nodemcu Esp8266 Pada Tangki,” J. Inform., vol. 07, pp. 1–11, 2020.
D. Hendryady, N. Syam, S. Komputer, and I. Bina Adinata, “Prototype Monitoring Pendeteksi Banjir Menggunakan Aplikasi Blynk Berbasis Esp32,” Amm. J. Syst. Inf. Comput. Inst. Teknol. dan Bisnis Bina Adinata, vol. 1, no. 1, pp. 20–34, 2023, [Online]. Available: https://journal.bina-adinata.ac.id/index.php/ammatoa/article/view/4 DOI: https://doi.org/10.63989/ammatoa.v1i1.4
R. S. Pressman, Software Quality Engineering: A Practitioner’s Approach, vol. 9781118592. 2014. doi: 10.1002/9781118830208. DOI: https://doi.org/10.1002/9781118830208
T. S. R. Pereira, T. P. de Carvalho, T. A. Mendes, and K. T. M. Formiga, “Evaluation of Water Level in Flowing Channels Using Ultrasonic Sensors,” Sustain., vol. 14, no. 9, pp. 1–20, 2022, doi: 10.3390/su14095512. DOI: https://doi.org/10.3390/su14095512
M. Ragnoli, G. Barile, A. Leoni, and G. Ferri, “An Autonomous Low-Power LoRa-Based Flood-Monitoring System,” 2020. DOI: https://doi.org/10.3390/jlpea10020015
N. M. Zain, L. S. Elias, Z. Paidi, and M. Othman, “Flood Warning and Monitoring System ( FWMS ) using GSM Technology,” vol. 5, no. 1, pp. 8–19, 2020. DOI: https://doi.org/10.24191/jcrinn.v5i1.158
H. Nur and P. Wisudawan, “Design and Implementation of Real-Time Flood Early Warning System ( FEWS ) Based on IoT Blynk Application,” vol. 13, no. 2, pp. 113–121, 2021. DOI: https://doi.org/10.26418/elkha.v13i2.49003
Downloads
Published
How to Cite
Issue
Section
Categories
License
Copyright (c) 2026 Journal of Novel Engineering Science and Technology

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






















