A water detector is an electronic device that is designed to detect the presence of water for purposes such as to provide an alert in time to allow the prevention of water leakage. A common design is a small cable or device that lies flat on a floor and relies on the electrical conductivity of water to decrease the resistance across two contacts.