.. _hc_sr04_ultrasonic_sensor_control: HC-SR04 Ultrasonic Sensor Control Example ========================================= This example walks through how to control an HC-SR04 Ultrasonic Sensor using an Arduino board. Your project kit has an HC-SR04 Ultrasonic Sensor. Ultrasonic sensors are used to measure distance. They work by sending out ultrasonic sound waves and measuring the time it takes for the sound waves to bounce back. In this example, we will learn how to control an HC-SR04 Ultrasonic Sensor using an Arduino board. .. seealso:: For more information on the HC-SR04 Ultrasonic Sensor, see the YouTube tutorial on `Using a Proximity Sensor with the Arduino `_ , a guide developed specifically for USF students. -------------- .. whole-literal-include:: ../../../examples/hc_sr04_ultrasonic_sensor.ino :language: cpp