Kushagra Mishra
Published

I am not Home. How Do I water my lovely Plants?

Introducing Smart watering system: Never over or under-water plants again! My project uses sensors to water plants based on soil moisture.

IntermediateFull instructions provided505
I am not Home. How Do I water my lovely Plants?

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Gravity: Digital 5A Relay Module
DFRobot Gravity: Digital 5A Relay Module
×1
water pump
You can check it at any electronics hardware store or on Amazon.
×1
SparkFun Soil Moisture Sensor (with Screw Terminals)
SparkFun Soil Moisture Sensor (with Screw Terminals)
×1
connecting wires
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Arduino Code

Arduino
Just write it on your IDE, connect it through the project, and run it.
//int water; //random variable 
void setup() {
  pinMode(3,OUTPUT); //output pin for relay board, this will sent signal to the relay
  pinMode(6,INPUT); //input pin coming from soil sensor
}

void loop() { 
  int water =0;
  water = digitalRead(6);  // reading the coming signal from the soil sensor
  if(water == HIGH) // if water level is full then cut the relay 
  {
  digitalWrite(3,LOW); // low is to cut the relay
  }
  else
  {
  digitalWrite(3,HIGH); //high to continue proving signal and water supply
  }
  delay(400); 
}

Credits

Kushagra Mishra
1 project • 0 followers

Comments