Is HC-SR04 Ultrasonic Ranging Sensor Module Compatible with Home Assistant (ESPHome)?
Hardware Safety & Electrical Verification
Electrical parameters & logic voltage safety limits before powering ICs
## Compatibility Overview
Classic ultrasonic distance sensor measuring ranges from 2cm to 400cm with 3mm accuracy.
Interactive Pinout & Wiring Diagram
Hover over any pin to view voltage limits and pull-up specifications
## Technical Specification Matrix
| Feature / Attribute | Specification / Status |
|---|---|
| Hardware Protocol | GPIO Pulse / Voltage Divider |
| Bridge Required | NO |
| Border Router Needed | None |
| Hardware Capabilities & Peripherals | Distance Measurement (cm) Proximity Alarm State Note: Exposing entities to Home Assistant requires corresponding YAML component config. |
| Pairing Complexity | Plug-and-Play |
| Factory Reset Instruction | Hold BOOT button for 3s. |
## Step-by-Step Pairing Guide
Factory Reset Device
Hold BOOT button for 3s.
Initialize Pairing Mode on Home Assistant (ESPHome)
Open Home Assistant (ESPHome) administration console, navigate to Integrations / Add Device, and start pairing scanner.
Confirm Entity Binding & State Verification
Verify that primary entities (Distance Measurement (cm), Proximity Alarm State) report live state changes inside Home Assistant (ESPHome).
Production Code Generator & Preset Toolkit
Pre-configured pinouts & drivers for HC-SR04 Ultrasonic Ranging Sensor Module
Report a Pinout Error or Submit Tested Code Snippets
Found a pin mapping quirk or built a custom ESPHome YAML driver for HC-SR04 Ultrasonic Ranging Sensor Module? Help us keep this matrix 100% accurate.