Sensor Chip: TCS3200 (RGB color detector). OUT ↔ MCU.IO (RGB color output frequency). S0/S1 selects the output frequency scaling factor, S2/S3 selects the color filter of red, green, blue, then OUT outputs a square wave with frequency proportional to the selected color intensity.