Components / Sensors / Water level sensor (non-contact, XKC-Y25)

Water level sensor (non-contact, XKC-Y25)

Senses liquid level through a plastic tank wall.

MeasuresLiquid present at sensor height
InterfaceDigital out
Supply voltage5 to 24 V
SensorsReviewedMPN XKC-Y25-VUsed in 5 projects
Y25
In short

What is the Water level sensor (non-contact, XKC-Y25) and what is it used for?

Senses liquid level through a plastic tank wall. Makers use it for tank levels without touching water.

How it works

It senses the capacitance change when water is present on the other side of the wall.

Key specifications

Sensor specValue
MeasuresLiquid present at sensor height
InterfaceDigital out
Supply voltage5 to 24 V

Pinout

Brown5 to 24 V
BlueGround
YellowOutput
BlackMode select (some versions)

How to use it

Stick it on the outside of a plastic or glass tank up to about 20 mm thick. It does not work through metal tanks. Use one at each level you want to detect.

Applications

Alternatives

Buy at

Common questions

What is the Water level sensor (non-contact, XKC-Y25) used for?

In maker projects: tank levels without touching water.

How does the Water level sensor (non-contact, XKC-Y25) work?

It senses the capacitance change when water is present on the other side of the wall.

What voltage does the Water level sensor (non-contact, XKC-Y25) need?

5 to 24 V.

How do I connect the Water level sensor (non-contact, XKC-Y25) to an Arduino or ESP32?

Digital out. Pins: Brown (5 to 24 V), Blue (Ground), Yellow (Output), Black (Mode select (some versions)).

What can I use instead of the Water level sensor (non-contact, XKC-Y25)?

Float switch (vertical).