Die Erfindung betrifft eine Landwirtschaftsmaschine (1), aufweisend eine Oberfläche (2), ein magnetisch wirkendes Element (10), eine an der Oberfläche (2) befestigte Komponente (3) mit einem Magneten (4), einen Sensor (5; 31) zur Erfassung eines Magnetfeldes in einer Umgebung des Elementes (10) und des Magneten (4), eine Auswertungseinheit (6), die mit dem Sensor (5; 31) verbunden ist, wobei mithilfe der Auswertungseinheit (6) und des mit dem Sensor (5; 31) erfassten Magnetfeldes eine Bewegung der Komponente (3) in Bezug zu der Landwirtschaftsmaschine (1) detektierbar und ein Signal in Abhängigkeit der Bewegung erzeugbar ist.The invention relates to an agricultural machine (1) having: a surface (2); a magnetically acting element (10); a component (3) that is secured to the surface (2) and that comprises a magnet (4) and a sensor (5; 31) for sensing a magnetic field in the environment around the element (10) and the magnet (4); and an evaluation unit (6) that is connected to the sensor (5; 31), wherein with the aid of the evaluation unit (6) and the magnetic field sensed by the sensor (5; 31), movement of the component (3) relative to the agricultural machine (1) can be detected and a signal can be generated in accordance with the movement.L'invention concerne une machine agricole (1), présentant une surface (2), un élément (10) à effet magnétique, un composant (3) fixé à la surface (2) pourvu d'un aimant (4), un capteur (5 ; 31) destiné à détecter un champ magnétique dans un environnement de l'élément (10) et de l'aimant (4), une unité d'évaluation (6), qui est reliée au capteur (5 ; 31), un déplacement du composant (3) par rapport à la machine agricole (1) pouvant être détecté et un signal pouvant être produit en fonction du déplacement à l'aide de l'unité d'évaluation (6) et du champ magnétique détecté au moyen du capteur (5 ; 31).