I have an automatic watering system. I used it last year and it was working perfectly. Now i want to use it again but the water pump does not start. The relay works beacuse when the water sensor is in water the green light from relay turns off and when i take the sensor out of the water, the light turns on and you can hear a “click”. But the water pump does not start. Usually the pump was making noise when it was running but now nothing happens. What could be the problem? The code is the same as last year so i dont think that is the problem.
I need help, please!!!
The code:
int water;
void setup() {
pinMode(3, OUTPUT);
pinMode(6, INPUT);
}
void loop() {
water = digitalRead(6);
if (water == HIGH)
{
else
{
digitalWrite(3, HIGH);
}
delay(400);
}