The soil moisture sensor value goes from 0 to 1023, when the sensor recive a value minor than 600, the relay turn on and the pump starts to irrigating the soil. To adapt the 220V home tension, I used a phone charger. Open it, remove the USB connector, find the VCC and GND pins (probably 1° and 4°) and connect it to the Arduino pins (like the wiring diagram)
Published March 8, 2021
Comments
Please log in or sign up to comment.