How do you test a photoelectric sensor