Analog photosensor, Digital proximity sensor, photoelectric switch