How to find out when the mouse been eating my KitKat? A Mouse Detector built with Light Sensor and LEDs - just another fun project using Intel Edison Board, Arduino, Groove Light Sensor, Groove LEDs. See link below for NodeJS Script (to be run via Intel XDK IoT IDE).
I essentially started from the Groove LED script template and Groove Light Sensor script template, and combined the two ideas together. And we have a Light-sensor triggering LEDs mechanism! :)
See this YouTube demo.
/*jslint node:true, vars:true, bitwise:true, unparam:true */
/*jshint unused:true */
// Leave the above lines for propper jshinting