The invention refers to a sensor (30) for use with an automatic door, gate or barrier (20), where the sensor (30) comprises an evaluation unit (66), an output port (68) and a detection unit (64), where the detection unit (64) provides a detection field (32) and which detects objects in a surveillance zone (34) of the detection field (32), where the detection unit (64) determines the position of objects detected in a surveillance zone (34) of the detection field (32), where the position refers to a detection coordinate
system which has a detection z-axis; the evaluation unit (66) maps the position relative to the origin of a detection coordinate
system; the evaluation unit (66) can output a specific
signal depending on the position of the object; the sensor (30) comprises a configuration means (62) via which a configuration
signal can be set to configure the relation between position and specific output
signal; where the configuration means (62) provide a first configuration signal for performing a mapping step, in which the detection unit (64) maps the position of objects in the surveillance zone (34) in the detection coordinate
system as
reference map. The invention is characterized in that the configuration means (62) provide a second configuration signal so that the evaluation unit (66) generates an environment coordinate system, where the environment coordinate system comprises at least an environment x-axis and an environment y-axis, where the evaluation unit (64) determines the reference position (50) within the surveillance zone (34); the evaluation unit (64) sets the environment x-axis to be the connecting line between the reference position (50) and the origin of the detection coordinate system; the environment y-axis is determined to be perpendicular to the x-axis and the z-axis of the detection coordinate system; where, furthermore, at least one monitoring field (36, 38) is defined in the environment coordinate system where the specific output signals are assigned to a detection event within the at least one monitoring field (36, 38), after definition of the evaluation coordinate system, the
reference map is transferred, particularly transformed, from the detection coordinate system to the environment coordinate system.