An array of sensors detects the color ... Color sensing (as well as detecting empty spaces) settled on IR-based sensors commonly used in line-following robots. You can watch the clock in action ...