advvvvvvvvvv
Published

SmartWater

A system which senses the moisture level of the soil and waters it if it is low

BeginnerFull instructions provided325
SmartWater

Things used in this project

Story

Read more

Schematics

Circuit diagram

helps you understand the circuit

Code

Code

C/C++
int DigitalSensor = 2;
int PumpPin = 8; // relay pin


void setup() {
  pinMode(DigitalSensor, INPUT);
  pinMode(PumpPin, OUTPUT);

}

void loop() {
  if(digitalRead(DigitalSensor) == HIGH){
    digitalWrite(PumpPin, HIGH);

    delay(15000);

    digitalWrite(PumpPin, LOW);
  }

  delay(900000); // 15 min
}

Credits

advvvvvvvvvv
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.