The days of standing there 'rocking' your PCB etchant tank are over. PCB Rocker is a setup and forget...
Jon Chandler shares some great tips for basic microcontroller I/O manipulation
The photo sensor may be enabled in 3 stages to measure from near darkness to full-intensity sunlight...