Ultra-small photoelectric sensor