The XKC-Y26-V is a contactless water level sensor designed to detect water levels without direct contact with the liquid. This sensor is ideal for non-invasive applications, making it suitable for measuring liquid levels in containers where direct contact with the liquid is undesirable or impractical. Common applications include water dispensers, coffee machines, and other household appliances, as well as industrial liquid level monitoring systems.
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Operating Current | ≤ 5mA |
Output Type | Digital (High/Low) |
Detection Range | 0-20mm (through non-metallic containers) |
Response Time | ≤ 500ms |
Operating Temperature | -20°C to 80°C |
Waterproof Grade | IP67 |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V DC) |
2 | GND | Ground |
3 | OUT | Digital output (High when water is detected, Low otherwise) |
+5V (Arduino) ----> VCC (XKC-Y26-V)
GND (Arduino) ----> GND (XKC-Y26-V)
Digital Pin (Arduino) ----> OUT (XKC-Y26-V)
// Define the pin connected to the sensor's OUT pin
const int sensorPin = 2;
// Variable to store the sensor state
int sensorState = 0;
void setup() {
// Initialize the serial communication
Serial.begin(9600);
// Set the sensor pin as an input
pinMode(sensorPin, INPUT);
}
void loop() {
// Read the state of the sensor
sensorState = digitalRead(sensorPin);
// Check if water is detected
if (sensorState == HIGH) {
Serial.println("Water detected!");
} else {
Serial.println("No water detected.");
}
// Wait for a short period before reading again
delay(500);
}
Sensor Not Detecting Water:
False Positives/Negatives:
Intermittent Readings:
Q: Can the XKC-Y26-V sensor be used with any type of liquid? A: The sensor is designed for water and similar liquids. It may not work accurately with highly viscous or non-conductive liquids.
Q: What is the maximum thickness of the container wall for accurate detection? A: The sensor can detect water levels through non-metallic container walls up to 20mm thick.
Q: Is the sensor waterproof? A: Yes, the XKC-Y26-V has an IP67 waterproof rating, making it suitable for use in wet environments.
Q: Can I use multiple sensors in the same project? A: Yes, you can use multiple sensors by connecting each sensor's OUT pin to a separate digital input pin on your microcontroller.
By following this documentation, you should be able to effectively integrate the XKC-Y26-V contactless water level sensor into your projects, ensuring accurate and reliable water level detection.