@tijn1987
You can try with the following modified line of code:
if ((ValveOPEN == 0) && (digitalRead(S1) == HIGH)) //chceks that S1 is still HIGH
{
@tijn1987
You can try with the following modified line of code:
if ((ValveOPEN == 0) && (digitalRead(S1) == HIGH)) //chceks that S1 is still HIGH
{