Tagged photoelectric-sensor