# HC-SR04 (Component)
## Description
HC-SR04 ultrasonic distance sensor. This economical sensor provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm
#CommonPartsLibrary #Sensor #ultrasonic #distanceSensor
## Component Details
- **Owner:** vasy_skral
- **Created:** 5/8/2023
- **Last Updated:** 4/20/2026
- **Visibility:** Public
- **License:** https://creativecommons.org/licenses/by/4.0/
- **Part Type:** Sensor
- **Datasheet URL:** https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf
- **Manufacturer Part Number:** HC-SR04
- **Symbol Style:** parametric-v1
- **Used in:** 6190 projects
- **Stars:** 13
- **Forks:** 16
## Distributor Pricing (qty 1)
*Pricing shown for quantity 1. For price breaks and other quantities, open in Flux.*
| Distributor | Unit Price (qty 1) | Stock |
|------------|--------------------|-------|
| [Digi-Key](https://www.digikey.com/en/products/detail/universal-solder-electronics-ltd/HC-SR04/16822117) | $2.27 | 1 |
| [LCSC](https://www.lcsc.com/product-detail/C19857336.html) | $5.2165 | 0 |
| [Mouser](https://www.mouser.com/ProductDetail/OSEPP-Electronics/HC-SR04?qs=wNBL%252BABd93PqZEhuhHkuOw%3D%3D) | $7.20 | 107 |
- **Part Type:** Sensors
- **MPN:** HC-SR04
- **Package / Case Code:** TO
- **Pin Count:** 4
- **Compliance:** REACH
## Pins
| Pin | Name | Type |
|-----|------|------|
| 1 | VCC | |
| 2 | TRIG | |
| 3 | ECHO | |
| 4 | GND | |
---
*Generated from [https://www.flux.ai/vasy_skral/hc-sr04~afv](https://www.flux.ai/vasy_skral/hc-sr04~afv)*