change from tilt sensor to photocell