A simple light sensor determines the digital level of pin 13, so you can cover the light sensor and see the light turn off.