Detecting depth and giving feedback based on the distance.