Computer Journal
Vol. 4 No. 1 (2026): February

Implementasi Sistem Peringatan Banjir Dini dengan Sensor HC-SR04 Berbasis ESP32 Internet of Things

Sujono, Sujono (Unknown)
Rusli M, Muhammad (Unknown)



Article Info

Publish Date
10 Feb 2026

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.

Copyrights © 2026






Journal Info

Abbrev

cj

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Computer Journal, e-ISSN: 2964-6219 and p-ISSN: 2964-6200 is a free and open-access journal published by the Research Division, YPMMA Institute, Indonesia. Computer Journal is an international, scientific, peer-reviewed, open-access computer science journal, including computer and network ...