Using a Distance Sensor to Detect Deviations in a Planar Surface