I am looking to switch a water solenoid valve using two water level switches, one will be placed at the top of a tank and will be NO (when water level is between full and empty) so that it will send a signal to the relay when the water reaches the top to stop the solenoid. The other switch will be at the bottom of the tank and will be NC so that it will send a signal to the relay when the water reaches the bottom of the tank to open the solenoid.
The switching will be done with a latching relay. The diagram of its pins is here:
I simply do not understand this enough to figure out how to wire this. The switches are SPST. The switches, solenoid valve, and relay are good for 120V.
What I am asking for is this: on that diagram, where do the switches connect? Where does the solenoid valve connect? Where does mains power connect? Lastly, do I need any resistors on the control side of the circuit?
Thank you so much in advance for your time.