Never posted online before and have only recently got into arduino so have only understood it at a basic level, but here we go, i am having some trubble with a basic programme to automatically change water for my fishtank, i have one input (a float switch which measures whether the water level is at the correct height) and two outputs (for two solenoidal valves, one to remove waste water and the other for clean replacement water).
In my programming i want a delay for 3 days before the waste valve opens to remove some water for a about 30 seconds.
then check whether water level has dropped with the float switch and open clean water valve until normal water level is reached.
to test i have been using LEDs to indicate when relays to the valves will be switched on or off.
I feel like this is an incredibly basic programme but for some reason its not been working. I’m not sure what i am doing wrong.
the most recent problems has been that its not recognising that there is an if statement before the else and so theres an error. (as seen in the screenshot below)
has anyone noticed my mistake