Media Elektrik
Vol. 23 No. 3 (2026): MEDIA ELEKTRIK

Development of an ESP32-Based Flood Monitoring and Early Warning System Using HC-SR04

Hilda Ashari (Universitas Negeri Makassar, Indonesia)
Dessy Ana Laila Sari (Universitas Negeri Makassar, Indonesia)



Article Info

Publish Date
30 Aug 2026

Abstract

This study aims to develop and implement an ESP32-based flood monitoring and early warning system capable of monitoring water level changes in real time. The system utilizes an HC-SR04 ultrasonic sensor to measure water levels, an OLED display for data visualization, and a buzzer along with smartphone notifications through Alarm Manager as early warning mechanisms. The research employed an experimental method consisting of hardware and software design, system programming using Arduino IDE, and performance testing using an aquarium model with water level variations ranging from 0 to 21 cm and an initial sensor to water surface distance of 5 cm. Water levels were classified into three conditions: Safe (19-21 cm), Warning (15-18 cm and 11-14 cm), and Danger (7-10 cm and 0-6 cm). The experimental results demonstrate that the ultrasonic sensor was able to detect water level changes consistently and reliably. Although an average measurement difference of 4,92 cm was observed compared to manual measurements, this discrepancy can be minimized through software calibration. Furthermore, the integrated warning system, consisting of a buzzer and smartphone notifications, performed effectively, with warning and danger alerts being delivered approximately one second after water level changes were detected. These findings indicate that the proposed system is capable of monitoring water levels and providing automatic real-time flood early warnings, making it a promising solution for flood risk mitigation and disaster preparedness.

Copyrights © 2026






Journal Info

Abbrev

mediaelektrik

Publisher

Subject

Computer Science & IT Control & Systems Engineering Engineering

Description

Publications in the areas of Electrical Engineering, Information and Computer Engineering, and Control include research articles and reviews of the ...