Sensor device for measuring a linear or rotational movement of a measurement object, comprising at least the following: a) a sensor element which is designed and arranged to detect the linear or rotational movement of the measurement object directly or indirectly, and to generate corresponding measurement signals, wherein the sensor element comprises a transmitter element and a sensitive element and the sensor element detects a relative movement between the transmitter element and the sensitive element, b) an electronic evaluation device, which is designed to evaluate the measurement signals from the sensor element, c) a bearing device, d) a first shaft coupled to the transmitter element of the sensor device and mounted by means of the bearing device, e) a second shaft that can be coupled directly or indirectly to the measurement object and which is mounted by means of the bearing device, wherein f) the first shaft and the second shaft are rotationally coupled to one another coaxially and by means of a releasable connection, and wherein g) the bearing device has a central axis and comprises a cylindrical bearing surface, which has an axial extension parallel to the said central axis in the axial direction and a bearing surface internal diameter (Di) perpendicular to the central axis in the radial direction, and wherein h) the connection has at one end of the first shaft axially and/or radially formed first teeth and at one end of the second shaft axially and/or radially formed second teeth, and the first teeth and second teeth engage in one another with interlock, wherein i) the first shaft, at its other end, which faces away from the first teeth, and the second shaft, at its other end, which faces away from the second teeth, in each case project axially out of the bearing surface, characterised in that j) viewed in the radial direction, the connection is arranged within the bearing surface internal diameter (Di), and viewed in the axial direction it is arranged within the axial extension of the bearing surface, and viewed in both the axial and radial directions it is spatially completely within the cylindrical bearing surface of the bearing device, wherein k) the connection comprises at least one axial connecting element, which connects the first shaft and the second shaft axially to one another, and which is in the form of a screw. a) a sensor element which is designed and arranged to detect the linear or rotational movement of the measurement object directly or indirectly, and to generate corresponding measurement signals, wherein the sensor element comprises a transmitter element and a sensitive element and the sensor element detects a relative movement between the transmitter element and the sensitive element, b) an electronic evaluation device, which is designed to evaluate the measurement signals from the sensor element, c) a bearing device, d) a first shaft coupled to the transmitter element of the sensor device and mounted by means of the bearing device, e) a second shaft that can be coupled directly or indirectly to the measurement object and which is mounted by means of the bearing device, wherein f) the first shaft and the second shaft are rotationally coupled to one another coaxially and by means of a releasable connection, and wherein g) the bearing device has a central axis and comprises a cylindrical bearing surface, which has an axial extension parallel to the said central axis in the axial direction and a bearing surface internal diameter (Di) perpendicular to the central axis in the radial direction, and wherein h) the connection has at one end of the first shaft axially and/or radially formed first teeth and at one end of the second shaft axially and/or radially formed second teeth, and the first teeth and second teeth engage in one another with interlock, wherein i) the first shaft, at its other end, which faces away from the first teeth, and the second shaft, at its other end, which faces away from the second teeth, in each case project axially out of the bearing surface, characterised in that j) viewed in the radial direction, the connection is arranged within the bearing surface internal diameter (Di), and viewed in the axial direction it is arranged within the axial extension of the bearing surface, and viewed in both the axial and radial directions it is spatially completely within the cylindrical bearing surface of the bearing device, wherein k) the connection comprises at least one axial connecting element, which connects the first shaft and the second shaft axially to one another, and which is in the form of a screw.