

The DFR XKC-Y25-T12V Water Sensor is a reliable and efficient device designed to detect the presence of water. It is commonly used in applications such as leak detection, water level monitoring, and environmental moisture sensing. This sensor operates on a non-contact principle, making it ideal for situations where direct contact with water is not desirable. Its compact design and ease of integration make it suitable for a wide range of projects, from home automation to industrial systems.








The following table outlines the key technical details of the DFR XKC-Y25-T12V Water Sensor:
| Parameter | Specification |
|---|---|
| Operating Voltage | 5V to 12V DC |
| Operating Current | ≤ 5mA |
| Output Signal | High/Low digital signal |
| Detection Range | 0-20mm (non-contact detection) |
| Response Time | ≤ 500ms |
| Operating Temperature | -20°C to 80°C |
| Dimensions | 28mm x 20mm x 10mm |
| Waterproof Rating | IP67 |
The XKC-Y25-T12V has a 3-pin interface. The pinout is as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (5V to 12V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output signal (High when water is detected) |
Below is an example of how to connect and use the XKC-Y25-T12V Water Sensor with an Arduino UNO:
// Water Sensor Example Code for Arduino UNO
// This code reads the output of the XKC-Y25-T12V water sensor and prints
// the status to the Serial Monitor.
const int waterSensorPin = 2; // Digital pin connected to the sensor's OUT pin
int waterDetected = 0; // Variable to store the sensor's output
void setup() {
pinMode(waterSensorPin, INPUT); // Set the sensor pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
waterDetected = digitalRead(waterSensorPin); // Read the sensor output
if (waterDetected == HIGH) {
Serial.println("Water detected!"); // Print message if water is detected
} else {
Serial.println("No water detected."); // Print message if no water is detected
}
delay(500); // Wait for 500ms before reading again
}
Sensor Not Detecting Water
False Positives
No Output Signal
Sensor Overheating
Can the sensor detect other liquids besides water?
Is the sensor waterproof?
Can I use the sensor with a 3.3V microcontroller?
What is the maximum detection range?
By following this documentation, you can effectively integrate the DFR XKC-Y25-T12V Water Sensor into your projects for reliable water detection and monitoring.