The Capacitive Non-Contact Liquid Level Sensor (Manufacturer Part ID: SEN0368) by DFRobot is a highly versatile sensor designed to detect the level of liquid in a container without requiring direct contact with the liquid. It uses capacitive sensing technology to measure changes in capacitance caused by the presence of liquid, making it ideal for applications where hygiene, safety, or non-invasive measurement is critical.
The following table outlines the key technical details of the SEN0368 sensor:
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Operating Current | ≤ 5mA |
Output Signal | High/Low (Digital) |
Detection Range | 0–12mm (distance from sensor to container) |
Compatible Container Material | Non-metallic (e.g., glass, plastic) |
Operating Temperature | -5°C to 105°C |
Humidity Range | 5%–100% RH |
Dimensions | 28mm x 28mm x 8mm |
Cable Length | 500mm |
The SEN0368 sensor has a 3-pin interface. The pinout is as follows:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply input (5V DC) |
2 | GND | Ground |
3 | OUT | Digital output signal (High when liquid detected) |
VCC
pin to a 5V DC power source and the GND
pin to ground.OUT
pin to a digital input pin on your microcontroller (e.g., Arduino UNO).OUT
pin will output a HIGH signal (5V). Otherwise, it will output a LOW signal (0V).The following example demonstrates how to use the SEN0368 sensor with an Arduino UNO to detect liquid levels:
// Define the pin connected to the sensor's OUT pin
const int sensorPin = 2; // Digital pin 2
const int ledPin = 13; // Built-in LED for visual indication
void setup() {
pinMode(sensorPin, INPUT); // Set sensor pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorState = digitalRead(sensorPin); // Read the sensor output
if (sensorState == HIGH) {
// Liquid detected
digitalWrite(ledPin, HIGH); // Turn on LED
Serial.println("Liquid detected!");
} else {
// No liquid detected
digitalWrite(ledPin, LOW); // Turn off LED
Serial.println("No liquid detected.");
}
delay(500); // Wait for 500ms before the next reading
}
Sensor Not Detecting Liquid
False Positives or Erratic Readings
No Output Signal
VCC
, GND
, and OUT
pins.VCC
pin).Q: Can the sensor detect all types of liquids?
A: The sensor can detect most liquids, but its performance may vary depending on the liquid's dielectric constant. It works best with water and other liquids with high dielectric constants.
Q: Can I use the sensor with a metallic container?
A: No, the sensor is designed for use with non-metallic containers only. Metallic containers interfere with the capacitive sensing mechanism.
Q: Is the sensor waterproof?
A: The sensor is designed for non-contact operation and should not be submerged in liquid. However, it can operate in high-humidity environments.
Q: Can I extend the sensor's cable?
A: Yes, but ensure the extension does not introduce significant resistance or noise, which could affect the sensor's performance.
By following this documentation, you can effectively integrate the SEN0368 Capacitive Non-Contact Liquid Level Sensor into your projects for reliable and non-invasive liquid level detection.