Articles Vol. 4, No. 1 (2026)
Sujono Sujono, Muhammad Rusli M
Universitas KH. A. Wahab Hasbullah
10.58477/cj.v4i1.385 Published: 2026-02-10
Abstract

Floods are natural disasters that often occur in Indonesia and sometimes cause great material and human losses. This paper describes the design and implementation of an IoT-based flood early warning system using ESP32 microcontroller and HC-SR04 ultrasonic sensor technology. The system is capable of automated river water level measurements at 5 minutes interval with real-time data sent to a web-based monitoring dashboard. Field validation was conducted in a quantitative experimental study at a river dam facility located in Jombang Regency. Performance testing results show that the system has high reliability, achieving 98.63% data transmission success rate. The HC-SR04 sensor has measurement accuracy of 97.69% with Mean Absolute Error (MAE) value equal to 2.31%. The warning mechanism works by comparing the water level with certain thresholds so that the dashboard can display safe or alert status conditions based on measurements made by the HC-SR04 sensor. Experimental results prove that this system is effective and economically feasible as a flood early warning solution for vulnerable regions, enhancing disaster preparedness capabilities significantly.

How to Cite

How to Cite

Sujono, S., & Rusli M, M. (2026). Implementasi Sistem Peringatan Banjir Dini dengan Sensor HC-SR04 Berbasis ESP32 Internet of Things. Computer Journal, 4(1), 41-51. https://doi.org/10.58477/cj.v4i1.385
Sujono Sujono

Universitas KH. A. Wahab Hasbullah

Program Studi Informatika, Fakultas Teknologi Informasi, Universitas KH. A. Wahab Hasbullah, Kabupaten Jombang, Provinsi Jawa Timur, Indonesia

Muhammad Rusli M

Universitas KH. A. Wahab Hasbullah

Program Studi Informatika, Fakultas Teknologi Informasi, Universitas KH. A. Wahab Hasbullah, Kabupaten Jombang, Provinsi Jawa Timur, Indonesia

Issue Vol. 4 No. 1 (2026)
SectionArticles
DOI10.58477/cj.v4i1.385
Publication Date2026-02-10
Pages41-51
  • Alvarado-Lugo, R. A., Lujan-Leon, J. P., Coaguila, S., Lovon-Ramos, P. W., Obando, L. T., & Campana, J. C. (2024, November). Performance comparison of AWS IoT connected dataloggers in glacier environments: Campbell CR1000X vs. ESP32 open source. In 2024 IEEE XXXI International Conference on Electronics, Electrical Engineering and Computing (INTERCON) (pp. 1-8). IEEE. https://doi.org/10.1109/INTERCON63140.2024.10833478
  • Ansari, S. A., & Vidyarthi, V. K. (2025). Use of Internet of Things in water resources applications: Challenges and future directions: A critical review. Discover Internet of Things, 5(1), Article 96. https://doi.org/10.1007/s43926-025-00193-7
  • Badan Nasional Penanggulangan Bencana. (2023). Data dan informasi bencana Indonesia. https://bnpb.go.id
  • Bukhari, S. A. S., Shafi, I., Ahmad, J., Villar, S. G., Villena, E. G., Khurshaid, T., & Ashraf, I. (2025). Review of flood monitoring and prevention approaches: A data analytic perspective. Natural Hazards, 121(5), 5103-5128. https://doi.org/10.1007/s11069-024-07050-w
  • Chart.js. (2023). Chart.js documentation. https://www.chartjs.org/docs/latest/
  • Chikurtev, D., Karkov, B., & Blagoeva, E. (2024, September). An overview of ESP32 microcontroller application in embedded systems, robotics and Internet of Things. In International Conference on Mathematical Modeling in Physical Sciences (pp. 753-766). Springer Nature Switzerland. https://doi.org/10.1007/978-3-032-00914-2_51
  • Cools, J., Innocenti, D., & O'Brien, S. (2016). Lessons from flood early warning systems. Environmental Science & Policy, 58, 117-122. https://doi.org/10.1016/j.envsci.2016.01.006
  • Darmawan, S., & Suryono, A. (2023). Sistem monitoring ketinggian air berbasis Internet of Things. Jurnal Sistem Komputer, 10(1), 85-92.
  • Espressif Systems. (2022a). ESP32 series datasheet. https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf
  • Espressif Systems. (2022b). ESP32-WROOM-32 datasheet. https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
  • Fadli, N., & Nugroho, R. (2020). Implementasi ESP32 pada sistem monitoring banjir berbasis IoT. Jurnal Teknologi Informasi, 12(3), 210-218.
  • Fraga-Lamas, P., Fernández-Caramés, T. M., Suárez-Albela, M., Castedo, L., & González-López, M. (2016). A review on internet of things for defense and public safety. Sensors, 16(10), Article 1644. https://doi.org/10.3390/s16101644
  • Jerrentrup, M. (2018). Teaching medicine with the help of "Dr. House". PLoS ONE, 13(3), Article e0193972. https://doi.org/10.1371/journal.pone.0193972
  • Kurniawan, D., & Saputra, K. (2021). Analisis akurasi sensor ultrasonik pada sistem monitoring ketinggian air. Jurnal Teknologi Elektro, 10(2), 98-104.
  • Liu, C., Guo, L., Ye, L., Zhang, S., Zhao, Y., & Song, T. (2018). A review of advances in China's flash flood early-warning system. Natural Hazards, 92(2), 619-634. https://doi.org/10.1007/s11069-018-3173-7
  • Mehmood, H., & Rasmy, M. (2020). Challenges and technical advances in flood early warning systems (FEWSs). In Flood impact mitigation and resilience enhancement (pp. 19-37). IntechOpen.
  • Sujono. (2025). Design and build a water level monitoring system in IoT-based reservoirs. Networking and Information Technology, 4(1), 14-22.
  • Suryono, A., & Darmawan, S. (2021). Sistem monitoring ketinggian air berbasis Internet of Things. Jurnal Sistem Komputer, 9(2), 85-92.
  • W3Schools. (2023). Bootstrap 5 tutorial. https://www.w3schools.com/bootstrap5/
  • Xing, L. (2020). Reliability in Internet of Things: Current status and future perspectives. IEEE Internet of Things Journal, 7(8), 6704-6721. https://doi.org/10.1109/JIOT.2020.2993216
  • Zhu, Q., Cherqui, F., & Bertrand-Krajewski, J. L. (2023). End-user perspective of low-cost sensors for urban stormwater monitoring: A review. Water Science & Technology, 87(11), 2648-2684. https://doi.org/10.2166/wst.2023.142.
License

This work is licensed under a Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Article Statistics
Download data is not yet available.
Similar Articles