Your electronics can now see in dazzling colour with this lovely color light sensor. We found the best colour sensor on the market, the TCS34725, which has RGB and Clear light sensing elements. An IR blocking filter, integrated on-chip and localized to the color sensing photodiodes, minimizes the IR spectral component of the incoming light and allows color measurements to be made accurately. The filter means you'll get much truer color than most sensors, since humans don't see IR. The sensor also has an incredible 3,800,000:1 dynamic range with adjustable integration time and gain so it is suited for use behind darkened glass or fabric.
To make sure you get consistent colour, we specified a nice neutral 4150°K temperature LED with a MOSFET driver onboard to illuminate what you're trying to sense. The LED can be easily turned on during sensing and turned off afterwards to save power.
Connect to a Flora via I2C and our example code will quickly get you going with 4 channel readings. Sew up the sensor by connecting 3V to 3V Flora output, Ground to common ground, SCL to I2C Clock and SDA to I2C Data on your Flora. All the pins line up and you can chain another sensor such as a lux sensor or accelerometer. Restart the IDE and select the example Flora sketch and start putting all your favorite fruit next to the sensor element!