# Title: Water Detect Click Board™ ## Description: The Water Detect Click Board™ is used for detecting water and other electroconductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid. The Water Detect Click Board™ can be used as a household flood alarm sensor, rain detector for smart buildings or for water tanks that act as a limit switch for a pump. You could use it on one of our clicker 2 development boards, with GSM 4 click, or any other from the wireless range, and create a home flood alarm. Any time the Water Detect Click Board™ detects water it will send you an SMS. How Does The Water Detect Click Board™ Work? The Water Detect Click Board™ works by comparing the voltage of two resistor dividers using the MCP606 comparator. The resistor divider (made of R2 and R3) is used as a voltage reference. The MCP606 functions as a comparator on this click board™. The second divider is made of resistor R1 and the sensory area. When the sensory area is dry, it's resistance is near infinite, and the voltage applied to the inverting terminal of the comparator equals VCC. Since the voltage of the reference divider connected to the non-inverting input is VCC/2, the output of the comparator is at zero voltage. Once the liquid is present at the sensory area, it's resistance drops and pulls the voltage on the inverting input of the comparator toward zero volts. Once this voltage falls below VCC/2, the comparator output swings toward VCC signaling the presence of liquid. The comparator output is tied to the INT pin on the mikroBUS™ header. The water detection area is actually made of exposed conducting wires - simple but effective technology. SPECIFICATIONS Type Miscellaneous Applications Household flood alarm sensor, rain detector for smart buildings or water tank fill sensor, automated watering systems, etc. On-board modules Water detection area, MCP606 comparator Key Features The water detection area is actually made of exposed conducting wires - simple but effective technology Interface GPIO Compatibility mikroBUS Click board size L (57.15 x 25.4 mm) Input Voltage 3.3V or 5V PINOUT DIAGRAM This table shows how the pinout of the Water Detect Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 INT MCP606 output (water detect) NC 3 CS TX 14 NC NC 4 SCK RX 13 NC NC 5 MISO SCL 12 NC NC 6 MOSI SDA 11 NC Power supply +3.3V 7 3.3V 5V 10 +5V Power supply Ground GND 8 GND GND 9 GND Ground JUMPERS AND SETTINGS Designator Name Default Position Default Option Description VCC SEL VCC SEL Left 3.3V Power Supply Voltage Selection between 3.3V/5V, left position 3.3V, right position 5V ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, MikroE, Misc, Sensor, Water ## Price range: 7.7 - 7.7 GBP ## Link: https://thedebugstore.com/products/mikroe-2786-water-detect-click-board-uk ## Compare-at price range: 11.0 - 11.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [Miscellaneous Click Boards™](https://thedebugstore.com/a/llms/collections/miscellaneous-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Google Shopping - invalid product](https://thedebugstore.com/a/llms/collections/google-shopping-valid-products) - [Miscellaneous Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/miscellaneous-sensor-click-boards-catalogue) - [Water Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/water-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-2786, Available: yes, Inventory: 1 ## Metafields - full_description:
The Water Detect Click Board™ is used for detecting water and other electroconductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid.
The Water Detect Click Board™ can be used as a household flood alarm sensor, rain detector for smart buildings or for water tanks that act as a limit switch for a pump.
You could use it on one of our clicker 2 development boards, with GSM 4 click, or any other from the wireless range, and create a home flood alarm. Any time the Water Detect Click Board™ detects water it will send you an SMS.
The Water Detect Click Board™ works by comparing the voltage of two resistor dividers using the MCP606 comparator. The resistor divider (made of R2 and R3) is used as a voltage reference.

The MCP606 functions as a comparator on this click board™.
The second divider is made of resistor R1 and the sensory area. When the sensory area is dry, it's resistance is near infinite, and the voltage applied to the inverting terminal of the comparator equals VCC.
Since the voltage of the reference divider connected to the non-inverting input is VCC/2, the output of the comparator is at zero voltage. Once the liquid is present at the sensory area, it's resistance drops and pulls the voltage on the inverting input of the comparator toward zero volts. Once this voltage falls below VCC/2, the comparator output swings toward VCC signaling the presence of liquid. The comparator output is tied to the INT pin on the mikroBUS™ header.
The water detection area is actually made of exposed conducting wires - simple but effective technology.
| Type | Miscellaneous |
| Applications | Household flood alarm sensor, rain detector for smart buildings or water tank fill sensor, automated watering systems, etc. |
| On-board modules | Water detection area, MCP606 comparator |
| Key Features | The water detection area is actually made of exposed conducting wires - simple but effective technology |
| Interface | GPIO |
| Compatibility | mikroBUS |
| Click board size | L (57.15 x 25.4 mm) |
| Input Voltage | 3.3V or 5V |
This table shows how the pinout of the Water Detect Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
| Notes | Pin | ![]() |
Pin | Notes | |||
|---|---|---|---|---|---|---|---|
| NC | 1 | AN | PWM | 16 | NC | ||
| NC | 2 | RST | INT | 15 | INT | MCP606 output (water detect) | |
| NC | 3 | CS | TX | 14 | NC | ||
| NC | 4 | SCK | RX | 13 | NC | ||
| NC | 5 | MISO | SCL | 12 | NC | ||
| NC | 6 | MOSI | SDA | 11 | NC | ||
| Power supply | +3.3V | 7 | 3.3V | 5V | 10 | +5V | Power supply |
| Ground | GND | 8 | GND | GND | 9 | GND | Ground |
| Designator | Name | Default Position | Default Option | Description |
|---|---|---|---|---|
| VCC SEL | VCC SEL | Left | 3.3V | Power Supply Voltage Selection between 3.3V/5V, left position 3.3V, right position 5V |
The Water Detect Click Board™ is used for detecting water and other electroconductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid.
Water Detect Click can be used as a household flood alarm sensor, rain detector for smart buildings or for water tanks that act as a limit switch for a pump.
You could use it on one of the MikroE Clicker 2 development boards, with GSM 4 Click, or any other from the wireless range, and create a home flood alarm. Any time Water Detect Click detects water it will send you an SMS.
Water Detect Click works by comparing the voltage of two resistor dividers using the MCP606 comparator. The resistor divider (made of R2 and R3) is used as a voltage reference.
.
The MCP606 functions as a comparator on this Click Board™'.
The second divider is made of resistor R1 and the sensory area. When the sensory area is dry, it's resistance is near infinite, and the voltage applied to the inverting terminal of the comparator equals VCC.
Since the voltage of the reference divider connected to the non-inverting input is VCC/2, the output of the comparator is at zero voltage. Once the liquid is present at the sensory area, it's resistance drops and pulls the voltage on the inverting input of the comparator toward zero volts. Once this voltage falls below VCC/2, the comparator output swings toward VCC signaling the presence of liquid. The comparator output is tied to the INT pin on the mikroBUS header.
The water detection area is actually made of exposed conducting wires - simple but effective technology.
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-water-detect-click-board.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-2786 - backorder_label: If no stock shown above, check availability - badge: - widget:We provide a library that reads the status of the click output (INT pin) when water is detected, as well as an example application that, when this happens, sends the message “Water detected!” on the microcontroller UART. The library and the example run on all the MikroElektronika compilers and main development boards; you can download both on LibStock.
Note: depending on the development board you are using, you may need the RS232 click or USB-UART click, to connect to your PC. The terminal available in all MikroElektronika compilers, or any other of your choice, can be used to read the message.
The library implements GPIO HAL and one function which checks the state of the INT pin.
uint8_t WDETECT_getStatus() - Returns water detection statusDemo application description
The demo application is composed of three sections :
WDETECT_getStatus() if water is detected it sends a message to UART. It uses the getINT() function which returns the state of INT pin.
void applicationTask()
{
if (WDETECT_getStatus())
{
UART1_Write_text("Water Detected!");
UART1_Write(13);
UART1_Write(10);
}
}
Other MikroElektronika Libraries used in this demo application:
Avoid plumbing and water leakage disasters!.
The Water Detect Click Board™ is used for detecting water and other electro-conductive liquids. If the detection area is wet the output of Microchip's MCP606 CMOS op-amp will go positive, signaling the presence of liquid.
The Water Detect Click Board™ can be used as a household flood alarm sensor, rain detector for smart buildings or for water tanks that act as a limit switch for a pump.