
Thanks to the magic of electrical properties you can use an LED as a light sensor. It is easy to search and find the details of how and why, so I’m just going to include some code here. Ok, ok… If you plug the LED into one of the Arduino digital pins backwards (i.e. Cathode…
