This module will add color sensing capability to any project. The TCS34725 is one of the best color sensors on the market. It has 4 elements for measuring RGB and white light. An integrated filter on the chip minimizes the IR spectral component of the light arriving at the sensor and allows for greater accuracy of color measurement.
The board features a 3,3V regulator, which allows 3-5V power supply and a level shifter for the bus I2C, therefore it can be used with 3V or 5V logics. Finally there is an LED with a color temperature of 4150 ° K (which can be deactivated) to illuminate the object whose color is to be measured.
The module connects to the Arduino board as follows:-
Download the Adafruit library and install it ( if this is your first time installing a library for Arduino you can consult this Adafruit tutorial ), then follow the tutorial.