StoreDeal.ai store
Shop
  • Deals
  • Deal checker
  • Black Friday
  • Buying guides
  • Brands
  • Stores
Travel
  • Flight deals
  • Hotel deals
Company
  • Research
  • Press
  • Use in AI assistants
  • Contact
  • deal.ai apps
Black Friday 2026
  • Walmart
  • Best Buy
  • Target
  • TVs
  • Laptops
  • Headphones
  • Apple
  • Gaming
  • Vacuums
  • Kitchen
  • Toys
  • Smartwatches
  • Tablets
  • Furniture
  • Mattresses
© Deal.ai Inc.·2222 Ponce de Leon Blvd, Miami, FL 33134·support@deal.ai
TermsPrivacy

Free shipping on everything·10% off your first order·No account needed · Buy 2, save 10% · 3+, save 15%

Deal.ai › Store › Tech & Gadgets › Cables & Parts
H
HC-SR04 Ultrasonic Ranging Sensor Module

HC-SR04 Ultrasonic Ranging Sensor Module

Sold and shipped by Deal.ai

$6.99Free shipping

$6.29 with 10% off your first order

Buy 2, save 10% · 3+, save 15%

Color: Blue
How many?
1
  • 30-day money-back guarantee
  • Secure checkout

Arrives about Dec 4–14, from a warehouse in China

30-day full refund: if you're not happy with it for any reason, or it never arrives, tell us within 30 days and we refund you in full. Shipping and refunds

Ask our agent about this product

It checks today's price at every store, compares the alternatives and answers in about a minute.

Enter to send, Shift+Enter for a new line

Price facts

  • Last seen at $6.99 at Deal.ai on Nov 26.

Our take on the HC-SR04 Ultrasonic Ranging Sensor Module

The HC-SR04 is a small blue board with two mesh-covered cylindrical transducers marked T and R, plus four header pins labeled Vcc, Trig, Echo and Gnd. It measures distance by timing an ultrasonic pulse: a trigger pulse on Trig sends a burst, and Echo returns a pulse whose width matches the round-trip time. It is the standard starter rangefinder for Arduino, Raspberry Pi and other microcontroller projects, and it is simpler and cheaper than I2C or laser modules, though it is less accurate and slower to update. It suits hobbyists and students measuring distance in air over roughly 2 cm to 4 m with a wide cone.

Best forArduino and Raspberry Pi beginners learning distance sensingObstacle-avoidance robots and small rover projectsTank or bin level and short-range presence detectionClassroom and prototyping work where a simple 4-pin module is enough
Pros
  • Four-pin interface works with almost any microcontroller
  • Two transducers give a clean send/receive split
  • Widely documented, with libraries for Arduino and Pi
  • Small and light enough to mount on a moving robot
  • Simple pulse timing, no complex protocol to learn
Cons
  • Wide beam cone picks up nearby objects off-axis
  • Readings drift with temperature and soft or angled surfaces
  • Slower update rate than laser or I2C rangefinders
  • Needs 5 V supply; 3.3 V logic boards need care
  • No onboard filtering, so code must reject bad echoes

What reviewers say

Reviewers treat the HC-SR04 as the default beginner rangefinder: easy to wire, well documented and reliable for robot and level projects. Complaints center on accuracy limits, the wide beam and occasional bad readings that need filtering in code.

What people mention
  • AccuracyMixedReviewers find it good enough for obstacle detection but not for precise measurement, with readings drifting on soft or angled targets.
  • Beam angleCriticisedThe wide cone picks up objects to the sides, which causes false echoes in cluttered spaces.
  • SetupPraisedOwners say wiring the four pins and loading a library takes minutes.
  • DocumentationPraisedTutorials and example code are plentiful for Arduino and Raspberry Pi.
  • PowerMixedIt runs on 5 V, so 3.3 V boards need level shifting on the Echo line.
  • ReliabilityMixedReadings are steady on flat hard surfaces but need filtering to reject bad echoes.

About the HC-SR04 Ultrasonic Ranging Sensor Module

The HC-SR04 is an ultrasonic ranging sensor module on a small rectangular circuit board. Two silver, mesh-covered cylindrical transducers sit at either end of the board, marked T and R. A row of four header pins along the lower edge is labeled Vcc, Trig, Echo and Gnd. The board is marked HC-SR04 and is used for measurement applications.

Type
Ultrasonic ranging sensor module
Board marking
HC-SR04
Transducers
2, marked T and R
Header pins
4: Vcc, Trig, Echo and Gnd
Application
Measurement
In the box
1 electronic board

Specifications

Product type
Ultrasonic ranging sensor module
Series
Sensor Module
Model
Sensor
Type
Power Module
Power
Other
Purpose
Instrument
Application areas
Measurement
Features

Questions and answers

What is the HC-SR04 used for?
It measures distance by ultrasound, commonly for obstacle-avoidance robots, level sensing and presence detection in microcontroller projects.
How do I connect it to an Arduino?
Wire Vcc to 5 V, Gnd to ground, Trig to an output pin and Echo to an input pin, then use a library to time the Echo pulse.
What range and accuracy does it give?
It works from about 2 cm to 4 m in air, with accuracy of a few millimeters on flat, hard targets and worse on soft or angled ones.
Does it work with a Raspberry Pi?
Yes, but the Pi's GPIO is 3.3 V, so shift the 5 V Echo signal down with a divider or level shifter.
What is in the box?
One HC-SR04 board. Header pins are on the board; jumper wires and a microcontroller are not included.
How does it compare with a laser rangefinder?
The HC-SR04 is simpler and cheaper but slower and less precise, with a wide cone; laser modules are narrower and more accurate at higher cost.
Where is the HC-SR04 Ultrasonic Ranging Sensor Module cheapest?
At Deal.ai, for $6.99, as of our latest check.

More in Cables & Parts

  • U
    USB-A Male to Female Adapter with Lanyard
    USB-A Male to Female Adapter with Lanyard
  • 3
    3-in-1 LED Glowing Charging Cable
    3-in-1 LED Glowing Charging Cable
  • B
    Braided Leather Bracelet Charging Cable for iPhone 14 13 Max
    Braided Leather Bracelet Charging Cable for iPhone 14 13 Max
  • 3
    3-in-1 Braided USB Charging Cable
    3-in-1 Braided USB Charging Cable
  • 1
    10-Piece Flashlight and Headlamp AC Chargers
    10-Piece Flashlight and Headlamp AC Chargers
  • 1
    1-Channel Relay Module Board with Screw Terminals
    1-Channel Relay Module Board with Screw Terminals
  • U
    USB Digital Power Tester with Color Display
    USB Digital Power Tester with Color Display
  • 4
    4-Port USB Hub with Attached Cable
    4-Port USB Hub with Attached Cable
All 1671 in Cables & Parts →

Shoppers also compared

  • B
    Bose Bass Module 700 Subwoofer
    Bose Bass Module 700 Subwoofer
  • 5
    5Core 6.5" Car Subwoofer 300W 4 Ohm
    5Core 6.5" Car Subwoofer 300W 4 Ohm
  • B
    Bose Lifestyle Ultra Subwoofer
    Bose Lifestyle Ultra Subwoofer
  • 6
    6.5-Inch 300W Car Subwoofer Pair
    6.5-Inch 300W Car Subwoofer Pair
  • 1
    12-Inch Loaded Subwoofer Enclosure with Built-In Amplifier
    12-Inch Loaded Subwoofer Enclosure with Built-In Amplifier
  • 5
    5 Core 8 Inch Car Subwoofer
    5 Core 8 Inch Car Subwoofer
  • P
    Portable Bluetooth Bottle Speaker
    Portable Bluetooth Bottle Speaker
  • B
    Bluetooth Speaker with Dual Drivers
    Bluetooth Speaker with Dual Drivers
Touch button module
Color
Blue
In the box
Electronic board x1