This Arduino project utilizes two servos, a moisture sensor, and a buzzer to detect floods. When the moisture level surpasses a predefined threshold, the system raises a bridge and activates a buzzer for alerts. The bridge lowers when the flood subsides.
- 2 Servo Motors
- Moisture Sensor
- Buzzer
- Arduino Board
- Left Servo: Pin 5
- Right Servo: Pin 6
- Moisture Sensor: Analog Pin A0
- Buzzer: Pin 8
- The bridge is initially lowered.
- Flood detection raises the bridge and activates the buzzer.
- The bridge lowers when the flood subsides.
- Adjust the moisture threshold and servo angles as needed.
Feel free to modify the code for specific requirements.