Flood Detection Warning System Prototype
This is a prototype of a flood detection warning system that notifies its users of rising water levels. At the press of a button, water starts pumping into a primary cup. When the water sensor is touched, another water pump activates to counter the flooding. Meanwhile, a Wi-Fi connection is made, allowing an emergency e-mail to be sent to the user. The goal is to help owners of real estate to initiate an early response to potential water damages on their property.
Won 3rd Place at CCSC Midwest 2024!
Date: September 2024
Role: Sole Creator
Technologies Used: Arduino | C++ Variant

Project Description
Circuit Design



Wiring and Primary Cup

Secondary and Primary Cup

The Arduino Uno R4 WiFi is a board used to store code and operate the connected devices. This board has a LED matrix to display animations, and a built-in Wi-Fi module.
The water pumps used to pump water in and out of the primary cup are connected to the Arduino via a breadboard and NPN transistors. The transistors are connected to a ground pin on the Arduino and a respective digital pin to open and close the ground connection.
The water-level sensor's signal pin is connected directly to an analog pin to relay moisture values. The power is connected directly to a digital pin to turn the sensor on and off. Wi-Fi is built into the Arduino, allowing me to only worry about coding the connection.
Code Design
Before the demo can begin, the arduino sets up the warning e-mail and connects to the Wi-Fi. Afterwards, water starts pumping into the primary cup to simulate flooding.
Once the water sensor detects the water, countermeasures activate and the warning e-mail gets sent. This pauses the rest of the code and immediately disconnects from Wi-Fi afterwards. Then the demo transports all the water back into the secondary water holder, waiting for the demo to be activated again.

E-mail sending code

Startup and Loop Code

E-mail sending code
Showcasing at a Conference

Showcase Setup including poster, computer to show e-mail, phone for hotspot, and the device itself


Showcase Setup including poster, computer to show e-mail, phone for hotspot, and the device itself