how to make a latching circuit with ground
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. Tidy up of original circuit. Note how using the ground symbol removes several lines and clarifies the schematic.







simulate this circuit

Figure 2. The revised circuit.

How it works:


Closing the Activate switch energises the pump via RLY1's NC contact.
If either alarm contact closes RLY1 is energised, the pump is disconnected and the relay latches.
Opening the Activate switch resets the circuit.