The condensate line in my a/c backed up and I had a mess on my floor and carpet. I unplugged the line and bought a water leak alarm ($10 Lowes) which runs off a 9v battery. What would be even better is if I could have the detector shut down my air handler so if I was at work there would not be any water damage. I could probably open the detector and try and figure out how to take the output to the piezo and have it amplified so I could operate a relay. I know a little electronics and am a licensed electrician.
I don't like to reinvent wheels. I would be interested in any ideas you may have. It would be difficult to put a pan underneath the unit and set a float switch which is done with commercial units.
Sparky