Change how we delay main loop.
Only set VALVE_PIN once per loop.