Hi, I am quite new in the electronics field and I came across a water level alarm circuit with nand gates that is connected in this way: My question is, what would be the input of the 1st nand gate if it is connected on the 2nd nand gate? Also, the 2nd nand gate's input will be based on the 1st nand gate's output which will also be based on the 2nd nand gate's output. I am really confused right now. please help me. Here is a picture of the complete circuit, if it helps..