Measure distance using a time-based process. Use the serial port for debugging.
Some processes we measure in the world involve measuring time. A sonar ranger emits a pulse of sound and measures the time it takes to reflect from an object back to the source. The distance is not itself a temporal quantity, but the dynamic process maps that distance to a time interval.
This exercise is a good opportunity to learn to use an oscilloscope. The DMM excels at measuring constant voltages, but cannot show how a signal varies over time. The oscilloscope plots voltage versus time at a wide range of time scales. It includes many controls designed to help select the specific intervals of interest from a waveform, in particular, triggering each sweep at a particular voltage and slope.