A sensor device for contactlessly determining a revolution rate and a direction of rotation of a component that rotates during operation of the component, the component having, on at least one peripheral region, a circumferential structure of web-shaped or tooth-shaped radial protrusions and interposed grooves or tooth gaps includes: a threaded segment configured to positionally fix an arrangement of the sensor device so that the circumferential structure of the component is movable past the sensor device; a magnetic field generating device; and a magnetic field detecting device having at least three magnetic field sensors that are not arranged in alignment along a line. A distance between the magnetic field sensors that are the farthest apart from each other is less than or equal to a width of the grooves or tooth gaps of the component.