Photocell sketch