The capacitance sensor detects the presence of water based on changes in capacitance in the electric field. This type of sensor is more sensitive and accurate than conductive sensors because it can detect even small amounts of water without direct contact with the liquid. Capacitive sensors are often used in industrial applications or sophisticated water leak monitoring systems.