The Sharp GP2Y0A21YK0F measures distance by optical triangulation: reflected infrared light moves across a position-sensitive detector with target angle…