Coffee grinder for grinding coffee beans into ground coffee, comprising at least one container or feed element for coffee beans and at least one grinding device (4, 9, 41, 42) for grinding the coffee beans, wherein the grinding device comprises at least a first and a second grinding element (41, 42), between which the coffee beans are ground by relative rotation of the two grinding elements (41, 42), wherein the distance between the two grinding elements in the grinding process determines the degree of grinding of the ground coffee, and wherein at least one grinding element is driven by a motor wherein an adjusting element is provided, with which the distance of the two grinding elements (41, 42) can be adjusted by rotation of the adjusting element, wherein a magnetic rotation position sensor is provided, which unambiguously directly or indirectly determines the absolute rotation position of this adjusting element as a measure of the distance and provides it for the further control of the coffee mill wherein a first grinding element is provided in a stationary manner and a second grinding element is rotatably mounted and rotates relative to the first grinding element in the grinding process, and the second grinding element is connected to a shaft and is driven by the motor via this shaft wherein the shaft is mounted in at least one bearing element, and at least one of these bearing elements is displaceably mounted and the shaft is mounted in this bearing element in an axially coupled manner, so that a displacement of the bearing element in the axial direction causes a corresponding displacement of the shaft in the same axial direction characterized in that the adjusting element is designed in the form of an adjusting pin and is coupled to the bearing element, the adjusting pin being mounted in such a way that a rotation of the adjusting pin leads to simultaneous axial displacement of the bearing element and in that the adjusting pin is mounted via a thread and engages with its tip in a slot (18, 43) in or on the bearing element and an axial displacement of the adjusting pin causes the axial displacement of the bearing element wherein the grinding device comprises at least a first and a second grinding element (41, 42), between which the coffee beans are ground by relative rotation of the two grinding elements (41, 42), wherein the distance between the two grinding elements in the grinding process determines the degree of grinding of the ground coffee, and wherein at least one grinding element is driven by a motor wherein an adjusting element is provided, with which the distance of the two grinding elements (41, 42) can be adjusted by rotation of the adjusting element, wherein a magnetic rotation position sensor is provided, which unambiguously directly or indirectly determines the absolute rotation position of this adjusting element as a measure of the distance and provides it for the further control of the coffee mill wherein a first grinding element is provided in a stationary manner and a second grinding element is rotatably mounted and rotates relative to the first grinding element in the grinding process, and the second grinding element is connected to a shaft and is driven by the motor via this shaft wherein the shaft is mounted in at least one bearing element, and at least one of these bearing elements is displaceably mounted and the shaft is mounted in this bearing element in an axially coupled manner, so that a displacement of the bearing element in the axial direction causes a corresponding displacement of the shaft in the same axial direction characterized in that the adjusting element is designed in the form of an adjusting pin and is coupled to the bearing element, the adjusting pin being mounted in such a way that a rotation of the adjusting pin leads to simultaneous axial displacement of the bearing element and in that the adjusting pin is mounted via a thread and engages with its tip in a slot (18, 43) in or on the bearing element and an axial displacement of the adjusting pin causes the axial displacement of the bearing element