A sensor device for generating a logic output in accordance with intensity of a physical quantity applied to a sensor element, the sensor device comprising: a switch circuit to be connected to a first terminal pair (A, C) and a second terminal pair (B, D) of the sensor element, for controlling switching between a terminal pair supplied with power and a terminal pair for outputting a signal voltage corresponding to the intensity of the physical quantity, and outputting a first signal voltage and a second signal voltage input from the terminal pair of the sensor element; a detection voltage setting circuit for outputting a first reference voltage (Vref1) and a second reference voltage (Vref2); and a first amplifier including a first input terminal pair (V5, V6), a second input terminal pair (V7, V8), and an output terminal, the first input terminal pair (V5, V6) including a first input terminal which is connected to the output terminal via a first switch and inputs a voltage based on the first signal voltage via a first capacitor, the first input terminal pair (V5, V6) including a second input terminal which inputs one of a voltage based on the second signal voltage and the second reference voltage (Vref2), the second input terminal pair (V7, V8) including a first input terminal which inputs the first reference voltage (Vref1), the second input terminal pair (V7, V8) including a second input terminal which inputs one of the second reference voltage (Vref2) and the voltage based on the second signal voltage, wherein the switch circuit has a function of switching between: a first detection state in which power is supplied to the first terminal pair (A, C) of the sensor element and the signal voltage is output from the second terminal pair (B, D); and a second detection state in which power is supplied to the second terminal pair (B, D) of the sensor element and the signal voltage is output from the first terminal pair (A, C), and wherein the first amplifier is configured to generate the logic output based on one first detection state and one second detection state. a switch circuit to be connected to a first terminal pair (A, C) and a second terminal pair (B, D) of the sensor element, for controlling switching between a terminal pair supplied with power and a terminal pair for outputting a signal voltage corresponding to the intensity of the physical quantity, and outputting a first signal voltage and a second signal voltage input from the terminal pair of the sensor element; a detection voltage setting circuit for outputting a first reference voltage (Vref1) and a second reference voltage (Vref2); and a first amplifier including a first input terminal pair (V5, V6), a second input terminal pair (V7, V8), and an output terminal, the first input terminal pair (V5, V6) including a first input terminal which is connected to the output terminal via a first switch and inputs a voltage based on the first signal voltage via a first capacitor, the first input terminal pair (V5, V6) including a second input terminal which inputs one of a voltage based on the second signal voltage and the second reference voltage (Vref2), the second input terminal pair (V7, V8) including a first input terminal which inputs the first reference voltage (Vref1), the second input terminal pair (V7, V8) including a second input terminal which inputs one of the second reference voltage (Vref2) and the voltage based on the second signal voltage, the first input terminal pair (V5, V6) including a first input terminal which is connected to the output terminal via a first switch and inputs a voltage based on the first signal voltage via a first capacitor, the first input terminal pair (V5, V6) including a second input terminal which inputs one of a voltage based on the second signal voltage and the second reference voltage (Vref2), the second input terminal pair (V7, V8) including a first input terminal which inputs the first reference voltage (Vref1), the second input terminal pair (V7, V8) including a second input terminal which inputs one of the second reference voltage (Vref2) and the voltage based on the second signal voltage, wherein the switch circuit has a function of switching between: a first detection state in which power is supplied to the first terminal pair (A, C) of the sensor element and the signal voltage is output from the second terminal pair (B, D); and a second detection state in which power is supplied to the second terminal pair (B, D) of the sensor element and the signal voltage is output from the first terminal pair (A, C), and a first detection state in which power is supplied to the first terminal pair (A, C) of the sensor element and the signal voltage is output from the second terminal pair (B, D); and a second detection state in which power is supplied to the second terminal pair (B, D) of the sensor element and the signal voltage is output from the first terminal pair (A, C), and wherein the first amplifier is configured to generate the logic output based on one first detection state and one second detection state.