What would be the easiest way to detect the presence of water between two metal probes? Can I simply have it so that one probe is constantly supplied with regulated 5v and have a second probe About 5-10mm apart connected to an input pin that the software is constantly checking for a voltage level on the ATMega?
Heres an MSPaint example of what I mean for the most part - I think you'll get the idea =)
Red "wire" = 5v regulated wires
Black "wire" = GND
Green "wire" = Input wire from probe to MCU
Blue "wire" = Input wire from probe to MCU
Basically when the MCU detects zero voltage from the Green wire input pin (The bottom probe) it tells the MCU to open the fluid valve to allow water into the tank. When the MCU detects voltage from the Blue wire input pin (The top probe) it tells the MCU to close the fluid valve again to cut off the flow of water into the tank.
It would also be nice if the MCU could keep track of how long the fluid valve is open for so that if its open for a ridiculous amount of time (say 10 minutes if its only supposed to take say 5 minutes to fill) it can go into an error mode where it just flashes an LED and/or pulses a piezodisc so the user knows something is wrong and can either reset on false alarm or after fixing the problem.