IoT Based Early Flood Detection System with Arduino and Ultrasonic Sensors in Flood-Prone Areas

Muhammad Darwis, Hafiizh Asrofil Al Banna, Setiawan Restu Aji, Dinda Khoirunnisa, Nakia Natassa


IoT is one of the focuses of application development carried out by various developers today. The aim is to enable various devices and work independently to meet the various needs of their users. The flood early warning system is one of the much-needed IoT-based applications, enabling users to quickly obtain water level information in an area. This application can help people to be more aware of flood disasters, especially during the rainy season. This research develops a flood early warning system application by utilizing Arduino and ultrasonic sensors installed in flood-prone areas. The sensor is used to measure the water level at a time based on the distance from the water surface to the sensor. When the distance between the water surface and the sensor is less than or equal to the set threshold, the sensor will send data and alerts to the user via email. This research applies the IoT design and development method. In addition, this research also used the C and Python programming language for application prototypes and the MySQL database to store the data. the application in this study was tested using the blackbox method and the results showed that all application functions could run properly.


IoT, Early Flood Detection System, Arduino, Ultrasonic Sensor, Python

Full Text:



B. Mazon-Olivo and A. Pan, “Internet of Things: State-of-the-art, Computing Paradigms and Reference Architectures,” IEEE Lat. Am. Trans., vol. 20, no. 1, pp. 49–63, 2022, doi: 10.1109/TLA.2022.9662173.

J. Wang et al., “IoT-Praetor: Undesired Behaviors Detection for IoT Devices,” IEEE Internet Things J., vol. 8, no. 2, pp. 927–940, 2021, doi: 10.1109/JIOT.2020.3010023.

L. Chettri and R. Bera, “A Comprehensive Survey on Internet of Things (IoT) Toward 5G Wireless Systems,” IEEE Internet Things J., vol. 7, no. 1, pp. 16–32, 2020, doi: 10.1109/JIOT.2019.2948888.

H. Kim et al., “IoT-TaaS: Towards a Prospective IoT Testing Framework,” IEEE Access, vol. 6, no. c, pp. 15480–15493, 2018, doi: 10.1109/ACCESS.2018.2802489.

G. Bedi, G. K. Venayagamoorthy, R. Singh, R. R. Brooks, and K. C. Wang, “Review of Internet of Things (IoT) in Electric Power and Energy Systems,” IEEE Internet Things J., vol. 5, no. 2, pp. 847–870, 2018, doi: 10.1109/JIOT.2018.2802704.

K. Shafique, B. A. Khawaja, F. Sabir, S. Qazi, and M. Mustaqim, “Internet of things (IoT) for next-generation smart systems: A review of current challenges, future trends and prospects for emerging 5G-IoT Scenarios,” IEEE Access, vol. 8, pp. 23022–23040, 2020, doi: 10.1109/ACCESS.2020.2970118.

K. Vinothini and S. Jayanthy, “IoT based flood detection and notification system using decision tree algorithm,” 2019 Int. Conf. Intell. Comput. Control Syst. ICCS 2019, no. Iciccs, pp. 1481–1486, 2019, doi: 10.1109/ICCS45141.2019.9065799.

A. A. Rashid, M. A. M. Ariffin, and Z. Kasiran, “IoT-Based Flash Flood Detection and Alert Using TensorFlow,” 2021 11th IEEE Int. Conf. Control Syst. Comput. Eng. (ICCSCE), Penang, Malaysia, pp. 80–85, 2021, doi: 10.1109/ICCSCE52189.2021.9530926.

F.- Puspasari, I.- Fahrurrozi, T. P. Satya, G.- Setyawan, M. R. Al Fauzan, and E. M. D. Admoko, “Sensor Ultrasonik HCSR04 Berbasis Arduino Due Untuk Sistem Monitoring Ketinggian,” J. Fis. dan Apl., vol. 15, no. 2, p. 36, 2019, doi: 10.12962/j24604682.v15i2.4393.

A. Bahga and V. Madisetti, Internet of Things: A Hands-on Approach, 1st Editio. New Delhi: Universities Press, 2015.

F. Susilawati, Z. Haritsah, and Safwan, “Aplikasi Peringatan Bencana Banjir Berbasis Android,” J. J-Innovation, vol. 9, no. 1, pp. 7–10, 2020.

Sumarno, B. Irawan, and Y. Brianorma, “Sistem Peringatan Dini Bencana Banjir Berbasis Mikrokontroler Atmega 16 Dengan Buzzer Dan Short Message Service (SMS),” J. Coding Sist. Komput. Univ. Tanjungpura, vol. 1, no. 1, 2013, [Online]. Available:

A. Ahlul, K. Ramadhan, E. Kurniawan, and A. Sugiana, “Perancangan Sistem Peringatan Dini Banjir Berbasis Mikrokontroler Dan Short Message Service (SMS),” e-Proceeding Eng., vol. 7, no. 1, pp. 178–186, 2020.

P. J. Nainggolan, M. Najoan, and S. Karaow, “Pengembangan Sistem Informasi Peringatan Dini Banjir di Kota Manado Berbasis Internet of Things,” Tek. Inform., vol. 15, no. 1, pp. 65–74, 2020, [Online]. Available:

A. Prasetyo and R. Rahmat, “Rekayasa Sistem Peringatan Dini Bencana Banjir Berbasis IoT Menggunakan Raspberry Pi,” J. Teknol. Technoscientia, vol. 15, no. 1, pp. 29–35, 2022, doi: 10.34151/technoscientia.v15i1.4035.

DOI: Abstract - 0 PDF - 0


  • There are currently no refbacks.

Copyright (c) 2023 Muhammad Darwis, Hafiizh Asrofil Banna, Setiawan Restu Aji, Dinda Khoirunnisa, Nakia Natassa

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

3rd Floor, Dept. of Informatics, Faculty of Science and Technology, UIN Syarif Hidayatullah Jakarta
Jl. Ir. H. Juanda No.95, Cempaka Putih, Ciputat Timur. 
Kota Tangerang Selatan, Banten 15412
Tlp/Fax: +62 21 74019 25/ +62 749 3315
Handphone: +62 8128947537

Creative Commons Licence
Jurnal Teknik Informatika by Prodi Teknik Informatika Universitas Islam Negeri Syarif Hidayatullah Jakarta is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at


JTI Visitor Counter: View JTI Stats

 Flag Counter