Arduino caliper

A photo of the oscilloscope screen is worth a thousand words...