Skip to main content
Home / Computer Hardware, Monitors & Peripherals / Keyes HC-SR04 Ultrasonic Sensor Distance Module for Arduino Smart Car Obstacle Avoidance DIY Projects

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Operating Voltage 5V DC
Operating Current 15mA
Operating Frequency 40Hz
Measuring Range 2cm - 400cm
Measuring Angle 15 degrees
Trigger Input Signal 10uS TTL pulse
Echo Output Signal TTL level signal
Dimensions 45mm x 20mm x 15mm
Weight 10g
Interface 4 Pin (VCC, Trig, Echo, GND)

5 reviews

A

Anonymous

Mar 21, 2026

Rating: 4/5

Good value sensor

Accurate enough for indoor use. Sometimes struggles with soft surfaces but overall great for the price point.

A

Anonymous

Mar 20, 2026

Rating: 3/5

Sensitive to surface type

Works well on flat walls but gives erratic readings on fabrics or angled surfaces. You need to account for this in your code.

A

Anonymous

Mar 01, 2026

Rating: 5/5

Fast delivery and works

Plug and play with standard libraries. Arrived quickly and was well packaged. No issues during setup.

A

Anonymous

Feb 25, 2026

Rating: 5/5

Essential for obstacle avoidance

Used it on my RC car build. Reaction time is fast enough to stop before hitting walls. Very satisfied with performance.

A

Anonymous

Jan 27, 2026

Rating: 5/5

Perfect for my robot project

Works flawlessly with Arduino Uno. The distance readings are consistent and the library support is excellent. Highly recommend for beginners.

5 FAQ

Q: Can I use this with 3.3V logic boards?

A: While VCC should be 5V, the echo output is 5V. You may need a voltage divider for the Echo pin if connecting to a 3.3V microcontroller.

Q: What library do you recommend?

A: The standard NewPing library works best for this module as it handles timing and multiple sensors efficiently.

Q: What is the accuracy?

A: Typically within 3mm under ideal conditions. Accuracy may vary based on surface texture and environmental temperature.

Q: How many pins does it have?

A: It has 4 pins: VCC, Trig, Echo, and GND. Please refer to the datasheet for the correct pinout orientation.

Q: Does it work underwater?

A: No, this is an air ultrasonic sensor. It is not waterproof and sound waves propagate differently in water.

Explore your interests

View More
All Categories
Best Seller (30)
New List (30)
Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

$10.80

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

$25.00

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

$997.00

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

$27,000.00

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

$11,339.00

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

$2.50

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

$8.42

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

$12.60

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

$4.15

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

$49.10

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

$237.60

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

$3.80

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

$20,150.00

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

$28.00

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

$27.66

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

$396.44

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

$97.00

Scented Candle Waxing Cotton Wick with Base Wick Fixer Sticker DIY Materials

Scented Candle Waxing Cotton Wick with Base Wick Fixer Sticker DIY Materials

$0.35

Stainless Steel Fish Tank Converter - Bucket to Aquarium Adapter with Inverted Stand and Faucet Spout for Mineral Water Jugs

Stainless Steel Fish Tank Converter - Bucket to Aquarium Adapter with Inverted Stand and Faucet Spout for Mineral Water Jugs

$13.58

Non-woven Cleaning Cloths, Lint-free Wiping Rags, Oil-absorbing Paper, Machine Cleaning Cloth, Dust Removal Cloth for Subway Use (No Washing Required)

Non-woven Cleaning Cloths, Lint-free Wiping Rags, Oil-absorbing Paper, Machine Cleaning Cloth, Dust Removal Cloth for Subway Use (No Washing Required)

$138.00

Large Paint Brush Set - Watercolor Pen Kit for Children's Day Art and Drawing

Large Paint Brush Set - Watercolor Pen Kit for Children's Day Art and Drawing

$31.25

Foldable Car Tire Stone Removal Tool, Explosion-Proof Scraper Hook for Extracting Pebbles from Tires

Foldable Car Tire Stone Removal Tool, Explosion-Proof Scraper Hook for Extracting Pebbles from Tires

$19.53

Black Swan Watercolor, Gouache, and Acrylic Paint Brush Set - Professional Art Painting Tools for Numbered Paint-by-Number Kits

Black Swan Watercolor, Gouache, and Acrylic Paint Brush Set - Professional Art Painting Tools for Numbered Paint-by-Number Kits

$6.80

Jiangchuan 800 Roll-to-Roll Oil-Heated Roller Heat Transfer Machine – Digital Sublimation Printer for Curtain Fabric Rolls

Jiangchuan 800 Roll-to-Roll Oil-Heated Roller Heat Transfer Machine – Digital Sublimation Printer for Curtain Fabric Rolls

$147,743.75

Traditional Handcrafted Wooden Rattle for Newborns – Safe for Teething, Intangible Cultural Heritage Toy

Traditional Handcrafted Wooden Rattle for Newborns – Safe for Teething, Intangible Cultural Heritage Toy

$10.10

All-Season Quiet and Comfortable Vacuum Tires for Buick Enclave 2013-2014 - Custom Fit, Wear-Resistant

All-Season Quiet and Comfortable Vacuum Tires for Buick Enclave 2013-2014 - Custom Fit, Wear-Resistant

$458.00

Mia Core Paper Stump and Blending Knife Set, Double-Ended Blending Pen for Sketching, Art Student Drawing Tools (S/M/L)

Mia Core Paper Stump and Blending Knife Set, Double-Ended Blending Pen for Sketching, Art Student Drawing Tools (S/M/L)

$4.28

Feileniao Gongbi Painting Draft Sheets – Pre-Outlined Bird-and-Flower Designs on Sized Xuan Paper for Color Filling Practice

Feileniao Gongbi Painting Draft Sheets – Pre-Outlined Bird-and-Flower Designs on Sized Xuan Paper for Color Filling Practice

$8.42

Automatic Retractable Air Hose Reel, Electronic Drum, Water Drum, Yarn Clamp, Air Pump Hose for Auto Repair, Beauty, Gardening, and Washing

Automatic Retractable Air Hose Reel, Electronic Drum, Water Drum, Yarn Clamp, Air Pump Hose for Auto Repair, Beauty, Gardening, and Washing

$280.00

LA Curved Surface Screen Printing Machine - Automatic Cup Printer, Cylindrical Net Printer for Cosmetic Bottles

LA Curved Surface Screen Printing Machine - Automatic Cup Printer, Cylindrical Net Printer for Cosmetic Bottles

$26,750.00