Home 2018 › Forums › Crumble › Support › How to use the HC-SR04 distance sensor
Tagged: distance, hc-sr04, ultrasonic
Connect the sensor as shown. Use the code as shown to get a value from the sensor and save it into a variable. This allows you to watch the value as the program runs.