You can throw a Raspberry Pi camera and OpenCV at the problem and approach it through software, or you can buy an off-the-shelf RGB sensor and wire it up to an Arduino. Or you can go back to ...
It’s handling the WS2812 RGB LEDs that go off in response to detected ... and also pulling data from a BME280 environmental sensor as well as a CCS811 VOC sensor — so it’s keeping fairly ...