The invention relates to a method for determining the position that a
magnet has at a time of measurement relative to a row of sensors extending in a row direction, wherein the position of the
magnet relative to the row of sensors can be changed in the direction of the row direction or in the direction parallel to the row direction, wherein the row of sensors has a first magnetic-field-sensitive sensor and a second magnetic-field-sensitive sensor, which is arranged spaced apart from the first sensor in the row direction, wherein a first sensor
signal is generated by the first sensor, the value of which, at the time of measurement, depends on the position of the
magnet relative to the first sensor at the time of measurement, and a second sensor
signal is generated by the second sensor, the value of which, at a time of measurement, depends on the position of the magnet relative to the second sensor at the time of measurement, wherein, in a first examination, the value that the first sensor
signal has generated at the time of measurement is compared with a first reference value and / or is checked as to whether it belongs to a first value range, in a second examination, the value that the second sensor signal has generated at the time of measurement is compared with a second reference value and / or is checked as to whether it belongs to a second value range, a relative value is formed from the value that the first sensor signal has generated at the time of measurement and the value that the second sensor signal has generated at the time of measurement, and, in a third examination, this relative value is compared with a third reference value and / or is checked as to whether it belongs to a third value range, and from the result of the first examination and the result of the second examination and the result of the third examination, a determination is carried out as to which of the sensor signals should be regarded as the leading signal for the time of measurement, wherein the position of the magnet relative to the row of sensors at the time of measurement is determined by evaluating the leading signal determined in this manner.