{"title":"Ultrasonic \u0026 Distance Sensors","description":"\u003cp\u003eDistance sensors let robots avoid walls, bins report how full they are, and tanks report their water level. Three types cover most projects.\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eThe \u003cstrong\u003eHC-SR04 ultrasonic sensor\u003c\/strong\u003e sends a 40 kHz ping and times the echo. Distance in centimetres is the echo pulse width divided by 58, with no library needed. Readings past about 3 m get unreliable.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eTime-of-flight (ToF) sensors\u003c\/strong\u003e such as the VL53L0X and VL53L1X time reflected laser light. They give fine, millimetre-level distance over I2C at shorter range, but bright ambient light can roughly halve their range.\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eIR obstacle sensors\u003c\/strong\u003e only tell you whether something is within range, with no distance number.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eHow to choose:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003ePick ultrasonic for cheap, general distance.\u003c\/li\u003e\n\u003cli\u003ePick ToF for precise short range or a narrow beam.\u003c\/li\u003e\n\u003cli\u003ePick IR for simple \"is something there?\" triggers.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eAll of them work with Arduino and ESP32. The HC-SR04's Echo pin outputs 5V, so on a 3.3V board such as the ESP32 put a voltage divider on Echo before it reaches the GPIO.\u003c\/p\u003e\n\u003ch2\u003eFrequently asked questions\u003c\/h2\u003e\n\u003ch3\u003eHow do I convert HC-SR04 time to distance?\u003c\/h3\u003e\n\u003cp\u003eDivide the echo pulse width in microseconds by 58 to get centimetres.\u003c\/p\u003e\n\u003ch3\u003eCan I connect an HC-SR04 to an ESP32?\u003c\/h3\u003e\n\u003cp\u003eYes, but add a voltage divider on Echo. It outputs 5V, and ESP32 pins are 3.3V only.\u003c\/p\u003e\n\u003ch3\u003eWhy is my ToF sensor's range shorter outdoors?\u003c\/h3\u003e\n\u003cp\u003eBright ambient light can roughly halve a VL53L0X's range compared with darkness.\u003c\/p\u003e\n\u003ch3\u003eDoes an IR obstacle sensor measure distance?\u003c\/h3\u003e\n\u003cp\u003eNo. It switches when something is within range. Use ultrasonic or ToF for a number.\u003c\/p\u003e\n\u003ch2\u003eGuides\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"\/blogs\/guides\/hc-sr04-vs-ir-vs-tof-distance-sensors-compared\"\u003eHC-SR04 vs IR vs ToF (VL53L0X): Distance Sensors Compared\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/blogs\/guides\/hc-sr04-ultrasonic-sensor-arduino-wiring\"\u003eHC-SR04 Ultrasonic Sensor: How It Works + Arduino Wiring\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/blogs\/guides\/how-does-an-ultrasonic-distance-sensor-work\"\u003eHow Does an Ultrasonic Distance Sensor Work?\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cscript type=\"application\/ld+json\"\u003e{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"How do I convert HC-SR04 time to distance?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Divide the echo pulse width in microseconds by 58 to get centimetres.\"}}, {\"@type\": \"Question\", \"name\": \"Can I connect an HC-SR04 to an ESP32?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes, but add a voltage divider on Echo. It outputs 5V, and ESP32 pins are 3.3V only.\"}}, {\"@type\": \"Question\", \"name\": \"Why is my ToF sensor's range shorter outdoors?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Bright ambient light can roughly halve a VL53L0X's range compared with darkness.\"}}, {\"@type\": \"Question\", \"name\": \"Does an IR obstacle sensor measure distance?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. It switches when something is within range. Use ultrasonic or ToF for a number.\"}}]}\u003c\/script\u003e\n\u003ch2\u003eReference pages on soldr.ai\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/soldr.ai\/docs\/components\/hc-sr04\"\u003eHC-SR04 ultrasonic sensor\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/soldr.ai\/docs\/components\/vl53l0x-gy-53\"\u003eVL53L0X distance sensor (GY-53)\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/soldr.ai\/docs\/components\/gp2y0a02-distance\"\u003eGP2Y0A02YK0F distance sensor\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/soldr.ai\/docs\/components\/vl53l1x\"\u003eVL53L1X distance sensor\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eMore guides on soldr.ai\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/soldr.ai\/blog\/hc-sr04-reads-zero-esp32\"\u003eHC-SR04 reads zero on an ESP32\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eDescribe your build on \u003ca href=\"https:\/\/app.soldr.ai\"\u003eSoldr\u003c\/a\u003e and it picks the parts, writes and compiles the code, and shows how to wire them. Sign in and get 100 credits free.\u003c\/p\u003e","products":[{"product_id":"vl53l1x-tof-distance-sensor-4m-range-i2c","title":"VL53L1X ToF Distance Sensor - 4m Range, I2C","description":"\u003ch1\u003eVL53L1X Time-of-Flight Distance Sensor — 4m Range, I2C Interface\u003c\/h1\u003e\n\n\u003cp\u003eThe VL53L1X is a high-accuracy time-of-flight (ToF) laser-ranging sensor capable of measuring distances up to 4 meters. It is ideal for obstacle avoidance, gesture recognition, and robotic navigation. The sensor’s compact design and I2C interface make it easy to integrate with popular microcontrollers and single-board computers.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasurement Range\u003c\/td\u003e\n\u003ctd\u003e4 cm to 400 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eResolution\u003c\/td\u003e\n\u003ctd\u003e1 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eField of View\u003c\/td\u003e\n\u003ctd\u003e27°\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eSupply Voltage\u003c\/td\u003e\n\u003ctd\u003e2.6 V – 3.5 V\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eI2C (up to 400 kHz)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/arduino-obstacle-avoidance-robot-kit-build-and-code-autonomous-car\"\u003eAutonomous robot obstacle avoidance system\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003eTouchless gesture-controlled light switch\u003c\/li\u003e\n  \u003cli\u003eLiquid level monitoring in tanks\u003c\/li\u003e\n  \u003cli\u003eDrone precision altitude hold and terrain following\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eThe VL53L1X chip's I2C pins are limited to 3.6 V (not 5V tolerant). Connect directly to 3.3V boards (ESP32, Raspberry Pi, STM32); for 5V Arduino Uno\/Mega use a breakout with level shifting or a logic level converter. It’s frequently used with motor drivers and servos in robotic applications.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VIN to 3.3V, GND to ground, SDA to A4 (or ESP32 GPIO 21), and SCL to A5 (or ESP32 GPIO 22). The breakout board includes built-in 4.7kΩ pull-up resistors on I2C lines, so no external pull-ups are needed. Default I2C address is 0x29, configurable to 0x30.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino Uno?\u003c\/summary\u003e\u003cp\u003eYes, the VL53L1X works with Arduino Uno over I2C through a logic level converter (the chip's I2C pins are 3.6 V max). Use the SparkFun VL53L1X library for easy integration.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan it measure through glass?\u003c\/summary\u003e\u003cp\u003eThe sensor uses 940nm laser light which can pass through glass, but reflections may affect accuracy. For best results, use clean, thin glass perpendicular to the sensor.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the maximum sample rate?\u003c\/summary\u003e\u003cp\u003eIn short-range mode, the sensor can achieve up to 50 Hz sample rate. Long-range mode is slower, typically 10–20 Hz, depending on ambient light conditions.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444953801069,"sku":"CDN-0226","price":580.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/vl53l1x-tof-distance-sensor-4m-range-i2c-4873813.jpg?v=1790780226"},{"product_id":"sharp-gp2y0a02-f-23-distance-sensor-20-150cm-analog-output","title":"Sharp GP2Y0A02YK0F Distance Sensor 20-150cm Analog Output","description":"\u003ch1\u003eSharp GP2Y0A02YK0F – 20-150 cm Infrared Distance Sensor\u003c\/h1\u003e\u003cp\u003eThe Sharp GP2Y0A02YK0F is an infrared proximity sensor that uses triangulation to measure distances from 20 cm to 150 cm with high reliability. It outputs an analog voltage that corresponds to the detected distance, allowing direct connection to microcontrollers with ADC for digital distance computations. This sensor is widely used in robotics for obstacle avoidance, in automation for object detection, and in industrial systems for non-contact measurement.\u003c\/p\u003e\u003ch2\u003eKey Specifications\u003c\/h2\u003e\u003ctable\u003e\n\u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eMeasuring Range\u003c\/td\u003e\n\u003ctd\u003e20 cm – 150 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eOutput Type\u003c\/td\u003e\n\u003ctd\u003eAnalog Voltage (0.4V – 2.65V typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSupply Voltage\u003c\/td\u003e\n\u003ctd\u003e4.5V – 5.5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCurrent Consumption\u003c\/td\u003e\n\u003ctd\u003e33 mA (typical)\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eResponse Time\u003c\/td\u003e\n\u003ctd\u003eApprox. 50 ms\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eAnalog output, requires external ADC\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003e\u003ca href=\"\/products\/kit-obstacle-avoiding-robot\"\u003eObstacle-avoiding robot with precise distance thresholds\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/products\/kit-automatic-soap-dispenser\"\u003eAutomatic hand sanitizer or soap dispenser\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"\/products\/esp32-parking-sensor-kit-build-a-4-slot-occupancy-dashboard\"\u003eCar parking sensor system with LED indicators\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003eNon-contact height measurement tool for automated sorting\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eCompatibility\u003c\/h2\u003e\u003cp\u003eThis sensor works with any 5V microcontroller that has an analog input, such as Arduino Uno, Nano, or Mega. It can also interface with 3.3V boards like ESP32 or Raspberry Pi Pico by using a voltage divider for the output signal. The analog output makes it easy to integrate with existing code libraries for distance calculation.\u003c\/p\u003e\u003ch2\u003eWiring Notes\u003c\/h2\u003e\u003cp\u003eConnect VCC to 5V, GND to ground, and the output pin directly to an analog input. Keep wires short and avoid routing near noisy components like motors. A 10 µF capacitor across VCC and GND near the sensor reduces measurement jitter.\u003c\/p\u003e\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, connect the sensor's output to any analog pin on Arduino and use the analogRead() function to obtain a value proportional to distance.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eHow accurate are the distance readings?\u003c\/summary\u003e\u003cp\u003eAccuracy is typically within a few centimeters, depending on ambient light and object reflectivity. White, matte surfaces yield the best results.\u003c\/p\u003e\u003c\/details\u003e\u003cdetails\u003e\u003csummary\u003eCan it be used outdoors in sunlight?\u003c\/summary\u003e\u003cp\u003eThe sensor may give unreliable readings in direct sunlight because of infrared interference. It is best used indoors or in shaded environments.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444955406701,"sku":"CDN-0270","price":470.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/sharp-gp2y0a02-f-23-distance-sensor-20-150cm-analog-output-4975768.jpg?v=1790780167"},{"product_id":"gy-53-vl53l0x-tof-laser-distance-sensor-module","title":"GY-53 VL53L0X ToF Laser Distance Sensor Module","description":"\u003ch1\u003eGY-53 VL53L0X Laser ToF Ranging Sensor – 2m Range\u003c\/h1\u003e\n\n\u003cp\u003eThe GY-53 module integrates the STMicroelectronics VL53L0X time-of-flight laser ranging sensor. It provides accurate, non-contact distance measurements up to 2 meters, making it ideal for obstacle avoidance, gesture detection, and short-range positioning. The I2C interface and compact breakout board allow easy integration into microcontroller projects.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e3.3V – 5V DC (on-board regulator)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasuring Range\u003c\/td\u003e\n\u003ctd\u003e30 mm to 2000 mm (in dark), 30 mm to 1000 mm (ambient light)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eResolution\u003c\/td\u003e\n\u003ctd\u003e1 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAccuracy\u003c\/td\u003e\n\u003ctd\u003e±5% (typical, \u0026gt;80% reflectivity)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eI2C (address 0x29, configurable via XSHUT)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eLaser Class\u003c\/td\u003e\n\u003ctd\u003eClass 1 (eye-safe, 940 nm VCSEL)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eCollision avoidance system for small robots or rovers\u003c\/li\u003e\n  \u003cli\u003eLiquid level monitoring in tanks or containers\u003c\/li\u003e\n  \u003cli\u003eGesture-based control interface (wave to trigger)\u003c\/li\u003e\n  \u003cli\u003eDrone altitude hold and terrain following\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eWorks with any 3.3 V or 5 V microcontroller that supports I2C, including Arduino Uno\/Nano\/Mega, ESP8266\/ESP32, Raspberry Pi, and STM32 boards. Pair with motor drivers for autonomous robots or servo controllers for pan-tilt systems. Standard I2C pull-up resistors (typically 4.7 kΩ) are required if not already present on the bus.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 3.3 V or 5 V, GND to common ground, SDA to I2C data, and SCL to I2C clock. The XSHUT pin can be pulled LOW to disable the sensor or used with multiple sensors to assign unique I2C addresses. Keep wiring short and avoid high-current paths to prevent noise.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, it uses I2C and works with both 3.3 V and 5 V Arduino boards. Libraries like Adafruit_VL53L0X make reading distance straightforward.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow accurate is the sensor?\u003c\/summary\u003e\u003cp\u003eUnder typical indoor conditions with good reflectivity, accuracy is within ±5%. For precision tasks, ensure stable lighting and target surface reflectivity.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan I measure distance through glass or transparent materials?\u003c\/summary\u003e\u003cp\u003eNo, the sensor's laser reflects off the first surface it hits, causing inaccurate readings. Use it only in open air or with non-reflective targets.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444955603309,"sku":"CDN-0275","price":210.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/gy-53-vl53l0x-tof-laser-distance-sensor-module-8446042.jpg?v=1790780167"},{"product_id":"waterproof-ultrasonic-distance-sensor-5v-module-compoden","title":"Waterproof Ultrasonic Distance Sensor | 5V Module | Compoden","description":"\u003ch1\u003eWaterproof Ultrasonic Distance Transducer Sensor – 20-600cm Range\u003c\/h1\u003e\n\n\u003cp\u003eThis waterproof ultrasonic distance sensor uses sound waves to measure distances from 20 cm to 600 cm with ±1 cm accuracy. Its sealed housing makes it safe for wet or dusty environments—ideal for outdoor projects, tank level monitoring, or obstacle detection in rain. The module outputs a TTL signal for easy interfacing with microcontrollers.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasuring Range\u003c\/td\u003e\n\u003ctd\u003e20 cm – 600 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAccuracy\u003c\/td\u003e\n\u003ctd\u003e±1 cm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eFrequency\u003c\/td\u003e\n\u003ctd\u003e40 kHz\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eWaterproof Rating\u003c\/td\u003e\n\u003ctd\u003eIP67 (sensor head only)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOutput Signal\u003c\/td\u003e\n\u003ctd\u003eTTL (pulse width proportional to distance)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-water-level-indicator\"\u003eWater tank level indicator with real-time depth reading\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-obstacle-avoiding-robot\"\u003eObstacle-avoiding robot that works outdoors\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003eParking assist system for vehicles or garages\u003c\/li\u003e\n  \u003cli\u003eDistance measurement data logger for industrial containers\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eThis sensor works with 5V microcontrollers like Arduino Uno, Mega, and standard ESP32 boards. For 3.3V devices such as Raspberry Pi or ESP8266, a level shifter on the Echo pin is recommended. It pairs easily with I2C LCD modules or SD card shields for displaying or logging measurements.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 5V, GND to ground, Trig to a digital output pin, and Echo to a digital input pin. The Echo pin outputs a 5V pulse; if using a 3.3V controller, insert a voltage divider or level shifter. Avoid pulling excessive current from the Echo pin.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, it works directly with 5V Arduino boards. Just connect Trig and Echo to digital pins and use a standard pulseIn function in your code.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan I submerge the sensor completely?\u003c\/summary\u003e\u003cp\u003eThe sensor head is IP67 rated, meaning it withstands temporary immersion up to 1 meter, but it is primarily designed for air-based measurement in wet conditions. Avoid permanent underwater operation.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow does it compare to HC-SR04?\u003c\/summary\u003e\u003cp\u003eThis sensor offers a longer range (600 cm vs 400 cm) and a waterproof transducer, making it more durable for outdoor and humid applications.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444959011181,"sku":"CDN-0331","price":280.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/waterproof-ultrasonic-distance-sensor-5v-module-compoden-1039047.jpg?v=1790780107"},{"product_id":"hc-sr04-ultrasonic-sensor-module-5v-distance-2cm-400cm","title":"HC-SR04 Ultrasonic Sensor Module 5V - Distance 2cm-400cm","description":"\u003ch1\u003eHC-SR04 Ultrasonic Distance Sensor Module – 2cm to 400cm Range\u003c\/h1\u003e\n\n\u003cp\u003eThe HC-SR04 ultrasonic sensor module measures distance by emitting 40kHz sound pulses and receiving the echo. It detects objects from 2cm up to 400cm away with \u0026lt;15° measuring angle, making it suitable for proximity sensing and distance measurement in robotics, automation, and DIY projects. The compact module operates at 5V and uses only two GPIO pins for trigger and echo, ensuring straightforward microcontroller integration.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Current\u003c\/td\u003e\n\u003ctd\u003e15mA\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eFrequency\u003c\/td\u003e\n\u003ctd\u003e40kHz\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasurement Range\u003c\/td\u003e\n\u003ctd\u003e2cm – 400cm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasuring Angle\u003c\/td\u003e\n\u003ctd\u003e\u0026lt;15°\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e45mm × 20mm × 15mm\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eSmart distance alert system for parking assistance\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-smart-hand-sanitizer-dispenser-kit-with-arduino-nano-plus-servo\"\u003eAutomatic hand sanitizer dispenser\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-water-level-indicator\"\u003eWater level indicator for overhead tanks\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/arduino-obstacle-avoidance-robot-kit-build-and-code-autonomous-car\"\u003eDIY robot obstacle avoidance system\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eWorks with Arduino (Uno, Nano, Mega), Raspberry Pi (requires level shifter for 3.3V logic on Echo pin), ESP32, and any microcontroller with GPIO pins. The module needs a 5V supply; the Echo pin outputs a 5V signal, so use a voltage divider when connecting to 3.3V boards.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 5V, GND to ground, Trig to a digital output pin, and Echo to a digital input pin. For stable readings, add a 10µF capacitor across VCC and GND. When using with 3.3V microcontrollers, attach a voltage divider (10kΩ \/ 20kΩ) on the Echo line to step down to safe levels.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Raspberry Pi?\u003c\/summary\u003e\u003cp\u003eYes, but the Echo pin outputs 5V, so a voltage divider (10k and 20k resistors) is needed to reduce it to 3.3V for safe connection.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the maximum range outdoors?\u003c\/summary\u003e\u003cp\u003eThe rated 400cm range is under ideal indoor conditions; outdoor performance may be reduced due to wind, temperature, and acoustic noise.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eDoes it come with connecting wires?\u003c\/summary\u003e\u003cp\u003eThe module is sold standalone. Standard 2.54mm pitch header pins can be used for connections; some packages may include header pins.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444961304941,"sku":"CDN-0404","price":85.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/hc-sr04-ultrasonic-sensor-module-5v-distance-2cm-400cm-2643123.jpg?v=1790780048"},{"product_id":"us-100-ultrasonic-distance-sensor-module-temp-comp-2cm-450cm","title":"US-100 Ultrasonic Distance Sensor Module – Temp Comp, 2cm-450cm","description":"\u003ch1\u003eUS-100 Ultrasonic Distance Sensor Module with Temperature Compensation — 2cm to 450cm Range\u003c\/h1\u003e\n\n\u003cp\u003eThe US-100 is an ultrasonic distance measuring module that determines distance by emitting 40 kHz sound waves and measuring their reflection time. It includes built-in temperature compensation, ensuring consistent accuracy even when ambient temperature changes. This module supports two output modes: UART for direct serial communication and pulse width for compatibility with existing HC-SR04 code.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e5V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Current\u003c\/td\u003e\n\u003ctd\u003e\u0026lt;15mA\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMeasurement Range\u003c\/td\u003e\n\u003ctd\u003e2cm – 450cm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAccuracy\u003c\/td\u003e\n\u003ctd\u003e±1mm\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eUltrasonic Frequency\u003c\/td\u003e\n\u003ctd\u003e40kHz\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOutput Modes\u003c\/td\u003e\n\u003ctd\u003eUART TTL \/ Pulse Width\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/arduino-obstacle-avoidance-robot-kit-build-and-code-autonomous-car\"\u003eObstacle avoidance robot with precise distance detection\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-water-tank-level-monitor-kit-v2\"\u003eTank water level monitor with data logging\u003c\/a\u003e\u003c\/li\u003e\n  \u003cli\u003eProximity alarm for security systems\u003c\/li\u003e\n  \u003cli\u003e\u003ca href=\"\/products\/kit-smart-hand-sanitizer-dispenser-kit-with-arduino-nano-plus-servo\"\u003eAutomatic hand sanitizer dispenser triggering\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eWorks with 5V logic microcontrollers like Arduino Uno, Nano, and Mega. Can be used with 3.3V boards such as ESP8266 and ESP32 through level shifting. Also interfaces with Raspberry Pi GPIO using a voltage divider. Compatible with most development boards that have UART or digital I\/O pins.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eIn UART mode, connect VCC to 5V, GND to GND, Trig\/TX to MCU RX, and Echo\/RX to MCU TX. For pulse width mode, install the jumper on the back of the module, then connect Trig to a digital output pin and Echo to a digital input pin. Ensure the power supply is 5V—the module does not operate reliably at 3.3V.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-7 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino?\u003c\/summary\u003e\u003cp\u003eYes, the US-100 works with Arduino boards using either UART or digital I\/O. Use the NewPing library for easy integration.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eHow does temperature compensation improve accuracy?\u003c\/summary\u003e\u003cp\u003eThe built-in sensor adjusts the speed of sound calculation based on ambient temperature, reducing errors caused by temperature fluctuations.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the difference between UART and pulse width mode?\u003c\/summary\u003e\u003cp\u003eUART mode provides direct distance data in millimeters via serial, while pulse width mode outputs a pulse whose duration corresponds to distance, similar to the HC-SR04.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53445015470445,"sku":"CDN-0687","price":240.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/us-100-ultrasonic-distance-sensor-module-temp-comp-2cm-450cm-1633578.jpg?v=1790779926"}],"url":"https:\/\/compoden.com\/collections\/distance-sensors.oembed","provider":"Compoden","version":"1.0","type":"link"}