For the price of a new car, you can pick up one of these ... flashlight with a few RGB LEDs, he added the infrared thermometer sensor and an Arduino to change the color of the LED in response ...
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 in the video embedded below just under the ...