TCS3200 Color Sensor Module
The TCS3200 color sensor senses the color of an object and produces an equivalent frequency signal (square wave) based on the color sensed. This frequency can then be measured by a microcontroller like Arduino. The frequency tells us the intensity of the RED, BLUE and GREEN color component present in sensed color, using that information we can determine the color.
The color detection sensor can operate between 3V to 5V and the object whose color has to be sensed should placed within 1cm distance from the sensor.