fixed photodiode not working

hopefully this doesn't break everything else :(