Water detection sensor is used to detect water leak, water level or rains. This is obtained by having a series of parallel wires exposed traces. The sensor traces have a weak pull-up resistor of 1 MΩ. The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the grounded trace.
The analog signal output can be read directly to arduino