

The Photoelectric Liquid Level Sensor (DFRobot SEN0205) is a compact and reliable device designed to detect the presence or absence of liquid at a specific level using light-based sensing technology. This sensor is non-contact, meaning it can detect liquid levels without direct exposure to the liquid, making it ideal for applications where contamination or corrosion must be avoided.








The following table outlines the key technical details of the DFRobot SEN0205 Photoelectric Liquid Level Sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Operating Current | ≤ 5mA |
| Output Type | Digital (High/Low) |
| Detection Range | 0-10mm (through transparent container wall) |
| Response Time | ≤ 500ms |
| Operating Temperature | -25°C to 105°C |
| Material Compatibility | Transparent containers (glass, plastic) |
| Dimensions | 28mm x 28mm x 20mm |
| Weight | 15g |
The sensor has a 3-pin interface for easy integration into circuits. The pinout is as follows:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Digital output signal (High: Liquid detected, Low: No liquid) |
VCC pin to a 5V DC power source and the GND pin to the ground of your circuit.OUT pin to a digital input pin of your microcontroller or other logic-level device.OUT pin. A HIGH signal indicates the presence of liquid, while a LOW signal indicates the absence of liquid.Below is an example of how to use the DFRobot SEN0205 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 feedback
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
}
Serial.println statements allow you to monitor the sensor's status via the Serial Monitor.Sensor Not Detecting Liquid
False Readings
No Output Signal
Intermittent Detection
Q: Can the sensor detect liquids in opaque containers?
A: No, the sensor is designed to work with transparent containers. Opaque materials block the light used for detection.
Q: What types of liquids can this sensor detect?
A: The sensor can detect most liquids, provided they are inside a transparent container. It is not affected by the liquid's color or composition.
Q: Can I use this sensor with a 3.3V microcontroller?
A: The sensor requires a 5V power supply. If your microcontroller operates at 3.3V, you may need a level shifter for the output signal.
Q: Is the sensor waterproof?
A: The sensor is designed for external mounting and is not waterproof. It should not be submerged in liquid.
By following this documentation, you can effectively integrate the DFRobot SEN0205 Photoelectric Liquid Level Sensor into your projects for reliable liquid level detection.