Flood events require environmental monitoring systems capable of rapidly providing information when risk levels change. This study develops an Internet of Things (IoT)-based prototype for early flood risk detection using four input parameters: water surface distance, water flow rate, rainfall, and wind speed. Data from the four sensors are collected by a Raspberry Pi 5 and processed using the Mamdani Fuzzy Logic method to generate a risk score ranging from 0% to 100%, which is classified into four risk levels: Safe, Caution, Alert, and Danger. Calibration results yielded Mean Absolute Percentage Error (MAPE) values of 0.713% for the ultrasonic sensor, 1.043% for the anemometer, 4.185% for the rain gauge, and 4.553% for the flow sensor. The Mamdani Fuzzy Logic method was evaluated using 25 test datasets, comprising prototype sensor readings and simulation scenarios designed to expand the range of input combinations. Validation of the system implementation using ten datasets produced a MAPE of 0.0233% between manual calculations and system outputs, with no discrepancies in risk classification. This MAPE value indicates the consistency of the Mamdani Fuzzy Logic implementation rather than its accuracy in detecting actual flood events. The processed results can be stored in Firebase Realtime Database, transmitted via MQTT, and delivered to users through a Telegram Bot in the form of sensor readings, risk scores, and risk classifications. The test results demonstrate that multi-sensor data acquisition, Mamdani Fuzzy Logic processing, data storage, and risk information delivery have been successfully integrated into a single early flood risk detection prototype. Further field testing under real-world conditions is required to evaluate the system's performance during actual flood events.
Copyrights © 2026