I want to design a system that automatically turns off a water pump when the water tank is full. Some background and details: 1- The pump is connected to main water supply. 2- The pump should turn on with a switch (manual input) and it should stop when water tank overflows. 3- It should not turn on automatically as the water level goes down. 4- The main water supply is irregular. Therefore, I prefer to have a manual turn on.
Can some one please suggest a circuit/design to achieve this?