Tell us about yourself!
It's abselutt critical to turn off the moisture sensor.If you only have 1 or 2 sensor you can get away with using a digital pin as power.I have several and ended up using a MOSFET.Im new to both coding and arduino, but for anyone intereseted her is my setuphttps://github.com/oleost/WaterSystemArduino
Just want to say thank your code. I used part of it and created my own. (Mainly the average sampling.)This one is to only control solenoid valves and water based on moisture of each plant.Anyway, here it is: https://github.com/oleost/WaterSystemArduino
Thank you, made it and looks like everything working. I first did the wiring wrong, so the colour coding on my wires is not correct. Im also planning to use this to water my plants.This is the script I made so far, not receieved everything so have not got it tested yet. https://github.com/oleost/WaterSystemArduino