Requires a phototranistor (TEPT4400) and series resistor (I used 2.2 kOhm) on ADC0 (pin 23). Range is quite limited though, so will probably need to modify hardware a bit and do some more software tuning.
* renamed .pde files to .ino * adapted source and makefiles