how to read five photosensors