HC-SR04 Ultrasonic

Sensors

Also known as: HC-SR04, Ultrasonic Distance Sensor

HC-SR04 Ultrasonic pinout diagram
PinNameFunction
1VCCPower supply (5V)
2TRIGTrigger input (send a 10µs pulse to start measurement)
3ECHOEcho output (pulse width = distance)
4GNDGround

Summary

Ultrasonic distance sensor — sends a sound pulse and times the echo to measure distance. Cheap, simple, and one of the most common beginner sensors for obstacle detection or parking-sensor style projects.