Or you can go back to basics and build this reflective RGB sensor from an LED ... a photocell. The principle behind [TechMartian]’s approach is simplicity itself: shine different colored lights ...
Manually switch the lamp on and off or set the built-in photocell ... Sengled Smartsense Outdoor LED Motion Sensor Bulbs that simply screw right into your home's existing light fixtures.