A method for teaching parameters for a door sensor for monitoring a monitoring field in front of the door leaf of a door, including: using an at least 2-axis rotation angle encoder having at least 1-axis inclination in relation to the door leaf; opening the door leaf of the closed door; detecting the rotation of the two axes of the rotation angle encoder during opening; ascertaining the direction of rotation of the two axes on the basis of the rotation thereof; ascertaining the side of the door on which the door sensor is installed on the door leaf on the basis of the direction of rotation of the two axes; and storing the side of the door in a memory unit.