Earlier posts on light-sensing with LED,
https://forum.pjrc.com/threads/40001-LED-as-a-light-sensor...