Using two primary sensors and actuators, a flood control system could be composed. The project’s intentions is to use water levels rising towards an ultrasonic sensor in order to initiate a servo motor that would essentially redirect water towards the soil moisture sensor thus activate a visual output ( a warning per se) through an LED if certain values are surpassed…
Pseudo-Code
![](https://blog.iaac.net/wp-content/uploads/2023/12/pseudocode-2-1024x430.jpg)
Bill of Materials
![](https://blog.iaac.net/wp-content/uploads/2023/12/image-220-1024x36.png)
![](https://blog.iaac.net/wp-content/uploads/2023/12/Slide2-1-1024x782.jpg)
- A: Ultrasonic distance sensor
- B: Soil moisture sensor
- C: Breadboard
- D: Arduino Uno R3
- E: 220 OHM resistor
- F:Servo Motor (positional)
- G:LED (red)
Composition
![](https://blog.iaac.net/wp-content/uploads/2023/12/Slide3-1024x815.jpg)
Code
![](https://blog.iaac.net/wp-content/uploads/2023/12/flood-control-1024x496.png)
Final performance
![](https://blog.iaac.net/wp-content/uploads/2023/12/Slide1-1024x1014.jpg)
Prototype Video
Next steps
An automated flood barrier and warning system can be created using the methodologies explored above. As exemplified by the MOSE project ( a flood barrier system designed to protect Venice from extreme floods); a similar technique could be applied within areas that are negatively affected by unanticipated water levels.
source: Venice’s Mose flood barrier
https://pixels.com/featured/venices-mose-flood-barrier-paul-woottonscience-photo-library.html
![](https://blog.iaac.net/wp-content/uploads/2023/12/MosesSystemConsorzioVeneziaNuova_web-1024x576.jpg)