Photocell safety beam sensor