Water pump with timing on button press

Arduino state change detection.

State change detection of active low switches.