Sensor device (10) comprising the following: at least one first sensor element (13) with a first detection direction configured to generate at least one first sensor
signal (Sx, Sx1) based on the detection of a first
magnetic field component of a varying
magnetic field oriented in the first detection direction; at least one second sensor element (14) with a second detection direction, configured to generate at least one second sensor
signal (Sy, Sx2) based on the detection of a second
magnetic field component of the varying magnetic field, which is oriented in the second detection direction; a
signal processing circuit (15, 16) configured to generate a first pulse signal (S1) based on the at least one first sensor signal (Sx, Sx1) and to generate a second pulse signal (S2) based on the at least one second sensor signal (Sy, Sx2); a fault
detector (18) configured to detect at least one fault and to generate a fault signal indicating the at least one fault in response to the detection of the at least one fault; and an output generator (17) configured to receive the first pulse signal (S1) and the second pulse signal (S2), the
error signal based on a first condition that the error
detector (18) detects the at least one error, and simultaneously output a first output signal (OUT1) and a second output signal (OUT2), wherein, based on a second condition that the fault
detector (18) does not detect the at least one fault, the output generator is configured to output the first pulse signal (S1) as the first output signal (OUT1) and to output the second pulse signal (S2) as the second output signal (OUT2), and wherein, in response to the first condition being satisfied, the output generator (18) is configured to keep the first output signal (OUT1) in a
steady state and to output the second pulse signal (S2) as the second output signal (OUT2), wherein: the first pulse signal (S1) comprises several transition edges that define several first pulses, the second pulse signal (S2) comprises several transition edges that define multiple second pulses, and the first several transition flanks are synchronized with the second several transition flanks.