Design and Development of a Prototype MQTT-Based Water-Level Monitoring System for Flood Warning
This study presents an MQTT-based prototype for water-level monitoring, local flood warnings, and remote dashboard monitoring. The system integrates a JSN-SR04T ultrasonic sensor, ESP32, SHT31, LCD, buzzer, relay-controlled lamps, Wi-Fi, an MQTT broker, and a dashboard. Tests included 15 JSN-SR04T readings at each reference distance (20, 30, and 50 cm) and 15 paired SHT31 measurements. MAPE was 0.38% at 30 cm and 0.12% at 50 cm; the 20 cm test point was below the cited 25 cm minimum range. SHT31 MAE was 0.193 °C for temperature and 0.713 percentage points for relative humidity. In the QoS 1 test, 596 of 600 messages were uniquely received, four were not received, and two duplicates were recorded, yielding 99.33% PDR, 0.67% PLR, a reception rate of 0.993 messages/s, and a mean RTT of 137.8 ms. Ten trials per output gave mean response times of 14.0 ms for the buzzer and 26.5 ms for the relay-controlled lamp. Across five 60 s outages, mean MQTT recovery and dashboard update times were 2.14 s and 2.66 s, respectively; local warnings remained active. The recorded threshold states matched the programmed rule at all six tested points (100% agreement, 6/6). Full-range accuracy and field reliability remain unestablished.
Authors
- Afif Zuhri Arfianto (ORCID: https://orcid.org/0000-0002-6076-3224)
- Agus Khumaidi (ORCID: https://orcid.org/0009-0005-8678-4778)
- Muhammad Khoirul Hasin (ORCID: https://orcid.org/0009-0000-7299-3118)
- Isa Rachman
- Riko Satrya Fajar Jaelani Putra
- Alfi Hafidz Ramadhani
Publication Details
- Journal
- Andalasian International Journal of Applied Science Engineering and Technology
- Published
- 2026-11-17
- DOI
- https://doi.org/10.25077/aijaset.v6i3.387
- Primary Topic
- Arduino and IoT Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00