Start by looking at the example sketches for a library that is used for color detection using an arduino color sensor like the TCS3200 or TCS230.
Start by looking at the example sketches for a library that is used for color detection using an arduino color sensor like the TCS3200 or TCS230.