I am making a DIY water changing system for my reef aquarium. I have some peristaltic peristaltic pumps and a .NET IOT app (am professional .NET developer) that controls the pumps.
The last piece of this puzzle is high/low water detection. I'd like to do this with metal probes rather than any sort of float sensor that may be more prone to failure. I've experimented with TDS sensors such as this one, but it does more than I need it to and I'd like like to avoid 2 additional breakout boards per sensor. I just need to tell if two wires are shorted or not with as little current flowing through the water as possible so as not to harm the fish.
My working example uses one wire connected to a GPIO INPUT_PULL_UP pin. The other is connected to ground. I sample the input pin every 100ms. When there is no water, it reads HIGH. When submerged in salt water, it reads LOW.
I am a novice when it comes to basic circuit design like this. Am I doing anything catastrophically wrong? One of these "sensors" will be continuously submerged and always read LOW when sampled. Am I unknowingly frying the internal resistor or passing current through the water?
Thanks