This visual trace shows how an ultrasonic DistanceSensor works on Raspberry Pi. First, the sensor sends a short trigger pulse. Then it waits for the echo signal to go HIGH, marking the start of the echo pulse. It times how long the echo stays HIGH until it goes LOW again. This duration is the time sound took to travel to the object and back. Using the speed of sound (34300 cm/s), the program calculates distance by multiplying duration by speed and dividing by two. Finally, it outputs the distance in centimeters. Variables like trigger and echo signals change state during the process. Key moments include understanding why we wait for echo HIGH and LOW, the distance formula, and handling echo timeouts. The quizzes test understanding of timing, calculation steps, and proportionality of distance to duration.