Photomicrosensor with light modulation for reduced external light interference and a connector for easy maintenance.