Color Sensing with TCS3200, Need Help with Code & Understanding

You have correct values in the termina? Just write them with analogWrite() to the right LED pins. Not digitalWrite().