water tank controller

Please consider that switches (when used real contacts) bounce and therefore you probably have to debounce them.