You can buy the sensor along with a metal holding bracket here:
https://www.amazon.com/dp/B0BRMRT71T?...
This video quickly demonstrates how to start getting distance readings with the HCSR04 Ultrasonic sensor using the Raspberry Pi Pico or the Raspberry Pi Pico W. I am using the 5V version of the sensor but it can be harmful to the device. I recommend using the 3.3-5V version found online. Nonetheless what I am showing you in this video works with all versions, thank me later.
Also, thank the gentleman who wrote the article that helped me in this video:
https://www.upesy.com/blogs/tutorials...
You can find the code I used in the above link.
Link to Blog Post:
https://shillehtek.com/blogs/news/how...
TIMESTAMPS
0:00 Intro
0:10 Brief Background
1:15 Physical Setup
1:37 Code Setup and Explanation
3:00 Outro