I have recently decided to add some automation to my pond control to reduce the size and amount of relays and switches I have.
I am trying to create a circuit where a float switch will go high and also a momentary push button is pressed and then the pump and uv lamp will latch on unless the button is pressed again or the float switch goes low.
I have managed to get some code to make both of these instances happen but I cannot work out how to get them on the same code.
Can anyone help with this please ?
Below I have included the two types of code for the two switches and the latching circuit, any help of getting these all into one format would be brilliant.
Button_circuit_pond.ino (1.9 KB)
latch.ino (2.44 KB)