Hi there. I'm using a relay shield, a ds1307 rtc and a yl-69 moisture sensor. My goal is to alternate which pin is being used for each day. i want to activate pin 12 on one day and pin 13 the next but only if the sensor value is below a certain threshold. The idea is to have one pump for food and one pump for water. I have been helped immensely already and wish to further refine this sketch.
So In my head, this code should initialize Pin 13 for 5 seconds before 12 and only if the sensor value is below 400. and when it is after 12, Pin 12 will initialize for 5 seconds but only if the sensor value is met.
My hope in the future is also to be able to base the OUTPUT pins on day of the week or even and odd days.
Right now I have it set to per half day. Any body know how use daysoftheweek instead?
Ive made those changes and it seems to work better except that when I initially upload the program, both Pins go High, Pin 12 goes LOW after 5 seconds and Pin 13 remains HIGH. If i trigger the sensor, the program will normalize and Pin 13 will go to Normally LOW.