Beginner coding for Automatic irrigation system

code in post 119 seems to do what i need it too. I need to play with it a bit more to understand it.

1 thing, if i increase the maxruntime1 to 60000 (1 minute) it just gets stuck and doesnt change to second plant

Mark