We used openCV(python) to find the distance between camera and the nearest object in front. The distance is computed as a function of the intensity of the lasers's reflected light.