A sensor device (1202; 1302; 1402) for determining a position of a magnetic source that is movable relative to the sensor device, or vice versa, or for determining an orientation of a substantially uniform magnetic field, for example the Earth magnetic field, the sensor device comprising: - a substrate comprising a plurality of at least two magnetic sensors configured for providing a plurality of at least two sensor signals; - a signal combiner (MUX, Σ) configured for combining the sensor signals (h1, h2, h3, h4) into a combined waveform (1231; 1331; 1431); - a processing circuit configured for extracting said position or orientation from the combined waveform (1231; 1331; 1431), wherein the processing circuit comprises a Band-Pass-Filter for filtering the combined waveform (1231; 1331; 1431), and a phase detector for detecting a phase of the filtered waveform (1232; 1332; 1432) being indicative of said position or said orientation; characterized in that the signal combiner (MUX, Σ) is configured for generating the combined waveform (1231; 1331; 1431) according to a timing scheme having a predefined duration Ts, partitioned in a number of timing windows (w1, w2, w3, w4), and by including one or more portions of the sensor signals (h1, h2, h3, h4) during respective predefined time durations (Δt11 to Δt44) in each of the timing windows (w1, w2, w3, w4) such that the timing windows (w1, w2, w3, w4) are only partially filled with the one or more portions of the sensor signals (h1, h2, h3, 4); wherein the predefined time durations (Δt11 to Δt44) are determined during a calibration procedure such that an overall position error or orientation error is reduced; and wherein at least two of said predefined time durations (Δt11 to Δt44) have a different value. - a substrate comprising a plurality of at least two magnetic sensors configured for providing a plurality of at least two sensor signals; - a signal combiner (MUX, Σ) configured for combining the sensor signals (h1, h2, h3, h4) into a combined waveform (1231; 1331; 1431); - a processing circuit configured for extracting said position or orientation from the combined waveform (1231; 1331; 1431), wherein the processing circuit comprises a Band-Pass-Filter for filtering the combined waveform (1231; 1331; 1431), and a phase detector for detecting a phase of the filtered waveform (1232; 1332; 1432) being indicative of said position or said orientation; the signal combiner (MUX, Σ) is configured for generating the combined waveform (1231; 1331; 1431) according to a timing scheme having a predefined duration Ts, partitioned in a number of timing windows (w1, w2, w3, w4), and by including one or more portions of the sensor signals (h1, h2, h3, h4) during respective predefined time durations (Δt11 to Δt44) in each of the timing windows (w1, w2, w3, w4) such that the timing windows (w1, w2, w3, w4) are only partially filled with the one or more portions of the sensor signals (h1, h2, h3, 4); wherein the predefined time durations (Δt11 to Δt44) are determined during a calibration procedure such that an overall position error or orientation error is reduced; and wherein at least two of said predefined time durations (Δt11 to Δt44) have a different value. <EOS>