Flooding is one of the most common natural disasters and can cause significant losses. This study aims to design and develop an Internet of Things (IoT)-based flood warning system using the Random Forest algorithm. The system utilizes BMP280 sensors to measure water level and an optocoupler sensor to measure water flow velocity. Sensor data are processed by an ESP32 microcontroller and sent to …