Harvest the rainwater:

WST009

Don't let all that water go to waste!
There is a well in the open area that is made to collect rainwater. A lid is required on the well to restore water for the maximum time. Make a smart lid system that opens while its raining. 

  1. Battery and Connector
  2. Arduino UNO
  3. Servo Motor
  4. USB Cable
  5. Jumper Wires
  6. Rain Water System
  1. Connect the water level sensor to Arduino UNO
    Water Level Arduino UNO
    s A0
    +

    5 v

    - gnd 
  2. Connect Servo motor with Arduino UNO
    Servo Arduino UNO
    Red 5 v
    Yellow Pin 8
    Brown GND
  3. Upload the code.
  4. Attach the system with a bucket with lid.

 


    #include             
Servo servo;        
int rs=A1;                
int angle = 0; 
void setup() {
servo.attach(8);
pinMode(rs,INPUT);
Serial.begin(9600);
}
void loop() {
if(analogRead(rs)>900){                               
    servo.write(0);             
}else{
  servo.write(180);
}
Serial.println(analogRead(rs));
}