Magnet unit for a sensor device for acquiring a measured variable that characterizes a rotational state of a steering shaft of a motor vehicle, - wherein the magnet unit comprises a sleeve and a magnet element that is connected in a positive-locking manner to the sleeve , - wherein the sleeve comprises a bush-shaped attaching section for connecting the magnet unit to a first part of the steering shaft and a connecting flange that extends outwards in the radial direction and comprises at least one cut-out having a radial outer face for connecting to the magnet element , - wherein the magnet element comprises a magnetically-effective magnet section and also at least one connecting element that extends in the axial direction and comprises a radial inner face for connecting to the sleeve , - wherein at least one connecting element of the magnet element extends through at least one cut-out in the connecting flange of the sleeve and is configured in such a manner that the connecting element of the magnet element forms a positive-locking connection in the tangential direction and in the axial direction with the connecting flange of the sleeve , - wherein at least one connecting element of the magnet element comprises at least one undercut so as to form the axial positive-locking connection with the connecting flange of the sleeve , wherein the connecting element is preferably configured in a hook-shaped and/or T-shaped and/or anchor-shaped manner, characterized in that the magnet unit is configured in such a manner that in at least one operating state, preferably in a reference state in the case of a reference ambient temperature, the radial inner face at least of one connecting element is spaced in the radial direction with respect to the radial outer face of the associated cut-out of the connecting flange of the sleeve . - wherein the magnet unit comprises a sleeve and a magnet element that is connected in a positive-locking manner to the sleeve , - wherein the sleeve comprises a bush-shaped attaching section for connecting the magnet unit to a first part of the steering shaft and a connecting flange that extends outwards in the radial direction and comprises at least one cut-out having a radial outer face for connecting to the magnet element , - wherein the magnet element comprises a magnetically-effective magnet section and also at least one connecting element that extends in the axial direction and comprises a radial inner face for connecting to the sleeve , - wherein at least one connecting element of the magnet element extends through at least one cut-out in the connecting flange of the sleeve and is configured in such a manner that the connecting element of the magnet element forms a positive-locking connection in the tangential direction and in the axial direction with the connecting flange of the sleeve , - wherein at least one connecting element of the magnet element comprises at least one undercut so as to form the axial positive-locking connection with the connecting flange of the sleeve , wherein the connecting element is preferably configured in a hook-shaped and/or T-shaped and/or anchor-shaped manner, characterized in that the magnet unit is configured in such a manner that in at least one operating state, preferably in a reference state in the case of a reference ambient temperature, the radial inner face at least of one connecting element is spaced in the radial direction with respect to the radial outer face of the associated cut-out of the connecting flange of the sleeve . <EOS>