A grayscale sensor that can be used for tracking. The principle of black line detection is that the infrared emission tube emits light to the road surface, the infrared light is reflected on the white background, and the receiving tube receives the reflected light. Suitable for obstacle and infrared emission detection, can be used as tracking sensor