A sensor device to record the speed and motion direction of an object, especially rotational speed and direction of a rotating object, based on the magnetoresistive effect, is provided with a magnetic field generator (2, 15) coupled to object (1), which generates a locally and time-defined varying reference magnetic field (H), with two magnetic field sensors (SE1, SE2) made of a magnetoresistive m