Component guide · Intermediate · 5 min read
MaxBotix LV-MaxSonar-EZ, HRLV-MaxSonar-EZ, XL-MaxSonar-EZ, I2CXL, ParkSonar

ProxSonar and USB-MaxSonar Sensors
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
MaxBotix MaxSonar-EZ sensors are high-quality ultrasonic rangefinders with three outputs at once: analog voltage, pulse width and serial. The LV series reads in inches up to 6.45 m, the HRLV in millimetres up to 5 m, and the XL series in centimetres up to 7.65 m with strong noise rejection. EZ0 has the widest beam and EZ4 the narrowest. USB models plug straight into a PC.
Key specs at a glance
- Range
- 6.45 m (LV), 5 m (HRLV), 7.65 m (XL)
- Resolution
- 1 inch (LV), 1 mm (HRLV), 1 cm (XL)
- Outputs
- Analog, pulse width, serial (RS232 or TTL); I2C on I2CXL; USB on USB models
- Supply
- 2.5 to 5.5 V (LV), 2.5 to 5.5 V (HRLV), 3.3 to 5.5 V (XL)
- Beam
- EZ0 widest to EZ4 narrowest
- Rate
- About 10 to 20 Hz
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1MaxBotix MB1000 LV-MaxSonar-EZ0 Ultrasonic Sensor Module – 645cm Range, 20Hz Read Rate₹2,439
Option 2MaxBotix MB1010 LV-MaxSonar-EZ1 Ultrasonic Rangefinder Module₹2,809
Option 3MaxBotix MB1020 LV-MaxSonar-EZ2 Ultrasonic Distance Module – 645cm Range, Analog/PWM/RS232 Output₹2,509
Option 4MaxBotix MB1030 LV-MaxSonar-EZ3 Ultrasonic Sensor – Narrow Beam, 254″ Range₹2,809
Option 5MaxBotix MB1040 LV-MaxSonar-EZ4 Ultrasonic Sensor Module₹2,499
Option 6MaxBotix MB1003 HRLV-MaxSonar-EZ0 Ultrasonic Rangefinder Module₹3,789
What the MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors is
MaxBotix MaxSonar EZ sensors (MB1000 to MB1040) are ultrasonic rangefinders that give distance as analog voltage, pulse width and serial output, for robots and drones.
Pick the beam by the job: EZ0 or EZ1 for detecting people, EZ3 or EZ4 to measure a specific target without side echoes.
The serial output on most EZ models is RS232-style inverted logic; invert it in software or use the TTL models (T suffix). The I2CXL answers at address 0x70: write 81 to start a reading, wait 100 ms and read two bytes in cm.
MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors pinout
The pins on the MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors and what each one does.
| Pin | Function |
|---|---|
| GND, +5 | Power |
| AN | Analog output |
| PW | Pulse width output |
| TX, RX | Serial out and range start |
| BW | Chaining / output mode |
- GND, +5
- Power
- AN
- Analog output
- PW
- Pulse width output
- TX, RX
- Serial out and range start
- BW
- Chaining / output mode
Wiring the MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors
Connect the MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors like this.
| MaxBotix LV, HRLV and XL-MaxSonar-EZ sensors pin | Arduino Uno | ESP32 |
|---|---|---|
| +5 | 5 V | 3.3 V |
| GND | GND | GND |
| AN | A0 | GPIO 34 |
| PW | D3 | GPIO 27 |
- +5
- Arduino Uno:
- 5 V
- ESP32:
- 3.3 V
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- AN
- Arduino Uno:
- A0
- ESP32:
- GPIO 34
- PW
- Arduino Uno:
- D3
- ESP32:
- GPIO 27
Example code
A minimal sketch to check the part works.
// LV-MaxSonar: analog Vcc/512 per inch; XL-MaxSonar: Vcc/1024 per cm; HRLV: Vcc/1024 per 5 mm
const int AN = A0, PW = 3;
void setup() { Serial.begin(115200); pinMode(PW, INPUT); }
void loop() {
int raw = analogRead(AN); // 10-bit at Vcc reference
float hrlv_mm = raw * 5.0; // HRLV: 5 mm per step
unsigned long us = pulseIn(PW, HIGH); // HRLV pulse: 1 us per mm; LV: 147 us per inch; XL: 58 us per cm
Serial.print("Analog "); Serial.print(hrlv_mm, 0);
Serial.print(" mm Pulse "); Serial.print(us); Serial.println(" mm");
delay(200);
}Setup and tuning
run on 2.5 to 5.5 V.
AN gives analog (Vcc/512 per inch), PW gives pulse width (147 µs per inch), TX gives serial.
pick EZ0 for wide beams and EZ4 for narrow beams.
about 6 to 254 inches (15 cm to 6.45 m); objects closer than 6 inches read as 6.
power from a clean supply; add a capacitor and resistor filter.
What you need
Shop this list20 of 20 found in our store · ₹59,365
MaxBotix MB1000 LV-MaxSonar-EZ0 Ultrasonic Sensor Module – 645cm Range, 20Hz Read Rate: the part this guide coversMaxBotix MB1000 LV-MaxSonar-EZ0 Ultrasonic Sensor Module – 645cm Range, 20Hz Read Rate₹2,439
MaxBotix MB1010 LV-MaxSonar-EZ1 Ultrasonic Rangefinder Module: another version this guide coversMaxBotix MB1010 LV-MaxSonar-EZ1 Ultrasonic Rangefinder Module₹2,809
MaxBotix MB1020 LV-MaxSonar-EZ2 Ultrasonic Distance Module – 645cm Range, Analog/PWM/RS232 Output: another version this guide coversMaxBotix MB1020 LV-MaxSonar-EZ2 Ultrasonic Distance Module – 645cm Range, Analog/PWM/RS232 Output₹2,509
MaxBotix MB1030 LV-MaxSonar-EZ3 Ultrasonic Sensor – Narrow Beam, 254″ Range: another version this guide coversMaxBotix MB1030 LV-MaxSonar-EZ3 Ultrasonic Sensor – Narrow Beam, 254″ Range₹2,809
MaxBotix MB1040 LV-MaxSonar-EZ4 Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1040 LV-MaxSonar-EZ4 Ultrasonic Sensor Module₹2,499
MaxBotix MB1003 HRLV-MaxSonar-EZ0 Ultrasonic Rangefinder Module: another version this guide coversMaxBotix MB1003 HRLV-MaxSonar-EZ0 Ultrasonic Rangefinder Module₹3,789
MaxBotix MB1013 HRLV-MaxSonar-EZ1 Ultrasonic Sensor – 5m Range, 1mm Resolution, Analog/PWM/Serial Output: another version this guide coversMaxBotix MB1013 HRLV-MaxSonar-EZ1 Ultrasonic Sensor – 5m Range, 1mm Resolution, Analog/PWM/Serial Output₹2,279
MaxBotix MB1023 HRLV-MaxSonar-EZ2 Ultrasonic Sensor – Pulse, Analog & Serial Output: another version this guide coversMaxBotix MB1023 HRLV-MaxSonar-EZ2 Ultrasonic Sensor – Pulse, Analog & Serial Output₹2,349
MaxBotix MB1604 HRLV-EZ0T Ultrasonic Rangefinder – High Sensitivity Wide Beam Sensor: another version this guide coversMaxBotix MB1604 HRLV-EZ0T Ultrasonic Rangefinder – High Sensitivity Wide Beam Sensor₹2,699
MaxBotix MB1634 HRLV-ShortRange-EZ3T Ultrasonic Distance Sensor – Pulse/Analog/TTL Output: another version this guide coversMaxBotix MB1634 HRLV-ShortRange-EZ3T Ultrasonic Distance Sensor – Pulse/Analog/TTL Output₹2,589
MaxBotix MB1200 XL-MaxSonar-EZ0 High-Performance Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1200 XL-MaxSonar-EZ0 High-Performance Ultrasonic Sensor Module₹3,619
MaxBotix MB1210 XL-MaxSonar-EZ1 Ultrasonic Sensor – 25-765cm Range, Pulse/Analog/RS232 Output: another version this guide coversMaxBotix MB1210 XL-MaxSonar-EZ1 Ultrasonic Sensor – 25-765cm Range, Pulse/Analog/RS232 Output₹3,429
MaxBotix MB1220 XL-MaxSonar-EZ2 Ultrasonic Distance Sensor: another version this guide coversMaxBotix MB1220 XL-MaxSonar-EZ2 Ultrasonic Distance Sensor₹2,824
MaxBotix MB1230 XL-MaxSonar-EZ3 Ultrasonic Rangefinder – 20cm to 765cm Range, Analog/Serial/PWM Output: another version this guide coversMaxBotix MB1230 XL-MaxSonar-EZ3 Ultrasonic Rangefinder – 20cm to 765cm Range, Analog/Serial/PWM Output₹3,649
MaxBotix MB1240 XL-MaxSonar-EZ4 High-Performance Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1240 XL-MaxSonar-EZ4 High-Performance Ultrasonic Sensor Module₹3,039
MaxBotix MB1260 XL-MaxSonar-EZL0 Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1260 XL-MaxSonar-EZL0 Ultrasonic Sensor Module₹5,339
MaxBotix MB1340 XL-MaxSonar-AE4 Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1340 XL-MaxSonar-AE4 Ultrasonic Sensor Module₹2,759
MaxBotix MB1242 I2CXL-MaxSonar-EZ4 Ultrasonic Sensor Module: another version this guide coversMaxBotix MB1242 I2CXL-MaxSonar-EZ4 Ultrasonic Sensor Module₹3,869
MaxBotix MB1009 ParkSonar-EZ144 Ultrasonic Sensor – Logic/RS232 Output: another version this guide coversMaxBotix MB1009 ParkSonar-EZ144 Ultrasonic Sensor – Logic/RS232 Output₹1,959
MaxBotix MB1034 LV-ProxSonar-EZ3 Ultrasonic Sensor – Proximity & Range Detection, RS232/Logic Output: another version this guide coversMaxBotix MB1034 LV-ProxSonar-EZ3 Ultrasonic Sensor – Proximity & Range Detection, RS232/Logic Output₹2,109
Alternatives and when to choose them
- MaxBotix WR sensors: outdoor housings.
- HC-SR04: cheap, needs trigger timing.
- US-100 and SRF05: low-cost alternatives.
Common mistakes to avoid
- Expecting readings under 6 inches.
- Running multiple sensors without chaining.
- Noisy supply.
- Wrong scale factor.
Frequently asked questions
Which output should I use with Arduino?
Analog output is simplest with analogRead; pulse width with pulseIn gives finer resolution.
What do EZ0 to EZ4 mean?
They set the beam width, from the widest EZ0 to the narrowest EZ4.
Why does it read 6 inches at close range?
Anything closer than about 6 inches (15 cm) is reported as 6 inches by design.
Can two sensors run together?
Yes, chain them with the RX pin to avoid interference.
Why are readings noisy?
Supply noise is the usual cause; add a 100 Ω resistor and 100 µF capacitor filter on VCC.
Parts for this guide
- ₹2,439View
- ₹2,809View
- ₹2,509View
- ₹2,809View
- ₹2,499View
- ₹3,789View
MaxBotix MB1013 HRLV-MaxSonar-EZ1 Ultrasonic Sensor – 5m Range, 1mm Resolution, Analog/PWM/Serial Output₹2,279View- ₹2,349View
- ₹2,699View
- ₹2,589View
- ₹3,619View
- ₹3,429View
- ₹2,824View
MaxBotix MB1230 XL-MaxSonar-EZ3 Ultrasonic Rangefinder – 20cm to 765cm Range, Analog/Serial/PWM Output₹3,649View- ₹3,039View
- ₹5,339View
- ₹2,759View
- ₹3,869View
- ₹1,959View
MaxBotix MB1034 LV-ProxSonar-EZ3 Ultrasonic Sensor – Proximity & Range Detection, RS232/Logic Output₹2,109View- ₹2,659View
- ₹4,169View
- ₹3,419View
- ₹4,109View
- ₹4,148View
- ₹4,169View
- ₹2,879View
- ₹359View
- ₹389View
- ₹139View
- ₹69View
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.











