Relay does not start water pump

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


Does the pump work if connected directly to the battery? If not it is bad. If yes you probably have a bad relay contact.

When you replace the relay module, get one that has TWO sets of contacts. A DPDT module. Then when the contacts die the next time, you have a spare set to use.

I touched the wires to the ends of a battery and nothing happend

Get a new pump!

Did you use the correct polarity?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.