I'm looking to create a water detection circuit. I looked online and couldnt find a probe that could just easily (and cheaply) give me an open circuit/closed circuit or something I could work with easily with a microcontroller. Since water conducts, is there a simple circuit or something I can use to detect if water is between 2 probes?
I'm thinking something like this: Have 2 pins on a micro: GND, and an input pin which is pulled UP to 5V via a resistor. Then the output of the 2 pins are connected to a probe, and if the water exists, the water will pull DOWN the high pin and I can get the value of the input pin inside the microcode. I"m just worried that this may cause issues somehow with the ground and voltages. Is there something better to use?
I'm thinking something like this: Have 2 pins on a micro: GND, and an input pin which is pulled UP to 5V via a resistor. Then the output of the 2 pins are connected to a probe, and if the water exists, the water will pull DOWN the high pin and I can get the value of the input pin inside the microcode. I"m just worried that this may cause issues somehow with the ground and voltages. Is there something better to use?