Schematic Diagram and Wiring
Below I show you the hardware wiring.
The box on which I have mounted the AS7263 sensor is something similar to this one:
This box (part 1) helps you keep the AS7263 sensor motionless in the horizontal plane. The function of part 2 is to hold the leaves at a constant distance above the sensor. I glued the RGB diode connector with silicon. In the download section you can get the STL files.