Color Sensor TCS230

What you need is actually all in the documentation already.

Refer to this other post http://forum.arduino.cc/index.php?topic=224465