The invention relates to an optoelectronic safety sensor comprising an electronic measuring device for generating measured signals which depend on a state of a safety zone observed by the safety sensor and an electronic evaluation unit for evaluating the measured signals. The electronic evaluation unit comprises a programmable logic controller integrated into the optoelectronic safety sensor for the logic evaluation of logic state variables which are derived from the measured signals.