Photoelectric sensor with reflection, emits and receives modulated light