To measure these moments with my Raspberry PI, I bought the Pimoroni BH1745 colour sensor. The BH1745 sensor is capable of detecting light in 3 color channels and a clear channel (RGBC - red, green, blue and clear).
The sensor comes with a tutorial on Github with a basic readout of the sensor: raw values, scaled values against the clear channel and clamped values. The problem with these basic readouts is that light intensity is not an linear scale. In photography light intensity is expressed as stops: one stop is a factor of two change in light intensity.
Channel | Max raw value | Number of stops |
---|---|---|
Red | 144177 | 17.1 |
Green | 65535 | 16 |
Blue | 117963 | 16.8 |
Clear | 278330 | 18.1 |