The Non-contact Digital Liquid Level Sensor is an advanced electronic component designed to detect the level of liquid in a container without making physical contact with the liquid. Utilizing digital technology, this sensor provides accurate and reliable measurements, making it ideal for a variety of applications where hygiene, safety, and precision are paramount.
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Operating Current | ≤ 5mA |
Output Type | Digital (High/Low) |
Response Time | ≤ 500ms |
Detection Range | 0-20mm (distance from sensor) |
Operating Temperature | -10°C to 70°C |
Humidity Range | 5% to 100% RH |
Waterproof Rating | IP67 |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (5V DC) |
2 | GND | Ground |
3 | OUT | Digital output (High when liquid is detected) |
+5V --------------------+
|
[VCC]
|
[OUT] ----> Digital Input Pin (e.g., D2 on Arduino)
|
[GND]
|
GND --------------------+
// 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 the sensor detects liquid
if (sensorState == HIGH) {
Serial.println("Liquid detected!");
} else {
Serial.println("No liquid detected.");
}
// Wait for a short period before reading again
delay(500);
}
False Positives/Negatives:
No Output Signal:
Intermittent Readings:
Q1: Can this sensor detect any type of liquid?
Q2: How do I clean the sensor?
Q3: Can I use this sensor with a 3.3V microcontroller?
Q4: What is the maximum distance the sensor can detect liquid?
By following this documentation, users can effectively integrate and utilize the Non-contact Digital Liquid Level Sensor in their projects, ensuring accurate and reliable liquid level measurements.