Component guide · Intermediate · 3 min read
DYP-U022 Fuel and DYP-L062 LPG Ultrasonic Level Sensors

Mounting and UART/RS485
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
DYP's U022 and L062 sensors measure liquid level from outside a tank by sending ultrasound up through the bottom wall and timing the echo from the liquid surface. The U022 is for diesel and fuel tanks, and the L062 for LPG cylinders. They need a smooth mounting spot, coupling gel and a known wall material. Versions output distance over UART, RS232, RS485 or I2C.
Key specs at a glance
- U022
- Fuel level, 50 to 1000 mm, metal or plastic tank
- L062
- Liquefied gas level, 30 to 1000 mm, through steel cylinders
- Outputs
- TTL UART, RS232, RS485 (Modbus) or I2C by model letter
- Supply
- 3.3 to 5 V (TTL) or 5 to 24 V (RS485/RS232)
- Mounting
- Under the tank, with coupling gel or adhesive
- Accuracy
- A few millimetres in good mounting
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1DYP-U022MVW-V1.1 TTL-UART Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm)₹9,600
Option 2DYP-U022M4W-V1.0 RS485 Ultrasonic Fuel Level Sensor (50-1000mm Range) – Metal Shell, IP68₹5,749
Option 3DYP-U022M2W-V1.0 RS232 Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm)₹5,749
Option 4DYP-L062MUW-V1.0 UART Auto Ultrasonic Liquefied Gas Level Sensor (30-1000mm Range)₹3,013
Option 5DYP-L062MTW-V1.0 Ultrasonic Liquefied Gas Level Sensor Module – UART Controlled, IP67₹2,159
Option 6DYP-L062MCW-V1.0 IIC Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm)₹2,168
What the DYP ultrasonic fuel and gas level sensor is
Model letters show the interface: T or U = UART, 2 = RS232, 4 = RS485, C = I2C, V = auto-output UART. UART versions return a frame starting 0xFF with the distance in millimetres; RS485 versions use Modbus registers.
Accuracy depends on good acoustic contact. Clean the paint, apply gel, and hold the sensor firmly with a magnet mount, strap or epoxy. Level = liquid height above the bottom, so convert to volume with the tank shape.
DYP ultrasonic fuel and gas level sensor pinout
The pins on the DYP ultrasonic fuel and gas level sensor and what each one does.
| Pin | Function |
|---|---|
| VCC | Supply (see model) |
| GND | Ground |
| TX / RX | UART (T, U, V models) |
| A / B | RS485 (4 models) |
| SDA / SCL | I2C (C models) |
- VCC
- Supply (see model)
- GND
- Ground
- TX / RX
- UART (T, U, V models)
- A / B
- RS485 (4 models)
- SDA / SCL
- I2C (C models)
Wiring the DYP ultrasonic fuel and gas level sensor
This table is for UART versions. For RS485 models use a MAX485 module or USB to RS485 adapter and Modbus reads.
| DYP ultrasonic fuel and gas level sensor pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V | 5V (VIN) |
| GND | GND | GND |
| TX | D2 (SoftwareSerial RX) | GPIO 16 |
| RX | D3 (trigger, controlled versions) | GPIO 17 |
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 5V (VIN)
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- TX
- Arduino Uno:
- D2 (SoftwareSerial RX)
- ESP32:
- GPIO 16
- RX
- Arduino Uno:
- D3 (trigger, controlled versions)
- ESP32:
- GPIO 17
Example code
Controlled UART versions need a trigger byte first; check the model's protocol sheet. RS485 models use Modbus function 03.
HardwareSerial dyp(2);
void setup() {
Serial.begin(115200);
dyp.begin(9600, SERIAL_8N1, 16, 17);
}
void loop() {
if (dyp.available() >= 4 && dyp.read() == 0xFF) {
uint8_t h = dyp.read(), l = dyp.read(), sum = dyp.read();
if (((0xFF + h + l) & 0xFF) == sum) {
Serial.printf("Level distance: %u mm\n", (h << 8) | l);
}
}
}Setup and tuning
clean to bare metal or smooth plastic at the mounting point.
use ultrasonic coupling gel, not grease that dries.
away from weld seams and internal baffles.
compare with a dipstick at two levels.
What you need
Shop this list10 of 11 found in our store · ₹1,02,616
DYP-U022MVW-V1.1 TTL-UART Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm): the part this guide coversDYP-U022MVW-V1.1 TTL-UART Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm)₹9,600
DYP DYP-U022M4W-V1.0 RS485 Ultrasonic Fuel Level Sensor (50-1000mm Range) – Metal Shell, IP68: another version this guide coversDYP-U022M4W-V1.0 RS485 Ultrasonic Fuel Level Sensor (50-1000mm Range) – Metal Shell, IP68₹5,749
DYP-U022M2W-V1.0 RS232 Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm): another version this guide coversDYP-U022M2W-V1.0 RS232 Ultrasonic Fuel Level Sensor (Measuring Range 50~1000mm)₹5,749
DYP-L062MUW-V1.0 UART Auto Ultrasonic Liquefied Gas Level Sensor (30-1000mm Range): another version this guide coversDYP-L062MUW-V1.0 UART Auto Ultrasonic Liquefied Gas Level Sensor (30-1000mm Range)₹3,013
DYP-L062MTW-V1.0 Ultrasonic Liquefied Gas Level Sensor Module – UART Controlled, IP67: another version this guide coversDYP-L062MTW-V1.0 Ultrasonic Liquefied Gas Level Sensor Module – UART Controlled, IP67₹2,159
DYP-L062MCW-V1.0 IIC Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm): another version this guide coversDYP-L062MCW-V1.0 IIC Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm)₹2,168
DYP-L062M4W-V1.0 RS485 Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm): another version this guide coversDYP-L062M4W-V1.0 RS485 Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm)₹2,915
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389- Uno R3 development board: the controller used in the wiring tableFind this part
MAX485 TTL to RS485 converter module: to read RS485 sensors from Arduino or ESP32Kikobot C1 6-Axis Robotic Arm for Education and Research₹70,800
USB to RS485 converter adapter: to test RS485 versions from a PCUSB to RS485 Converter Adapter₹74
Alternatives and when to choose them
- Liquid level sensors: all methods compared.
- Industrial ultrasonic sensors: top-mounted ultrasonic level.
- Submersible level transmitter: pressure-based level.
Common mistakes to avoid
- Mounting on paint or rust without gel.
- Wrong model for the tank material.
- Reading the wrong interface version.
- Mounting over a seam or baffle.
Frequently asked questions
Does it need a hole in the tank?
No, it measures through the bottom wall.
Can it measure LPG cylinders?
Yes, the L062 is designed for that.
What interface should I buy?
UART for Arduino, RS485 for long cables and PLCs.
How accurate is it?
Millimetres in good conditions; mounting quality matters most.
Does tank tilt matter?
Yes; it measures the height directly above the sensor.
Parts for this guide
Projects that use it
Put this into practice: 1 step-by-step build in our project library uses parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


