1. Power the sensor
Connect HC-SR04 VCC to 5 V, GND to Pico GND, and TRIG to GP3. Keep the system unpowered while building the echo divider.
2. Protect the echo input
Connect ECHO through 1 kohm to a junction connected to GP2. Connect 2 kohm from that junction to ground. Verify the divider before powering the circuit.
3. Run the measurement code
Point the sensor toward a flat object 10 to 50 cm away and run the program. Stable centimeter readings should appear four times per second.
4. Test the useful range
Move the target closer and farther away. Note where readings become unstable so your future project can reject unreliable values.