Liquid level sensors are used for all types of applications. This liquid level sensor will provide us an analog voltage somewhat in proportion to the amount of liquid the sensor is exposed to.
Pinout
The sensor has a series of parallel copper traces across the board. The board is oriented so that these traces a parallel to the surface of the water. These traces are what we use to sense the level of the liquid. If the board has water or another fluid covering all the traces, then it will output a maximum analog value reading of 1023. If the board is halfway covered, it will read 512 and so on.
Use analogRead() to read the analog value output on the "S" pin to determine the level of the liquid.