Saikan45
Published © Apache-2.0

Automated Watering Plant

This project will show you how to make an automated watering system and water level indicator.

IntermediateWork in progress58,433
Automated Watering Plant

Things used in this project

Story

Read more

Schematics

Circuit Diagram

By this diagram,you can easily make an Automated watering System with Indicator.

Code

Code For this Project

C/C++
Write this code or copy it from us.
#include <AFMotor.h>
// DC motor on M2
AF_DCMotor motor(2);
void setup() {
  Serial.begin(9600);          
  motor.setSpeed(1000);
  motor.run(RELEASE);
}
void loop()
{int sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  delay(1);       
if(sensorValue>300)
{
motor.run(FORWARD);
}
else
motor.run(RELEASE);
}

Credits

Saikan45
0 projects • 21 followers

Comments