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.
#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));
}