OSOYOO Tracking sensor module
The OSOYOO IR Track Sensor is essentially a combination of IR LED and IR detector which can be used to detect black and white colors. It works by sending a beam of IR light from IR LED toward the surface. The IR detector will get the reflection signal from surface and judge if the surface is white or black color.
Arduino Graphical Programming Kit: