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, which is 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 detection voltage corresponding to the intensity of the physical quantity, the switch circuit comprising a first output terminal for outputting the detection voltage and a second output terminal for outputting the detection voltage; a differential amplifier comprising: a first input terminal and a second input terminal, which are connected to the first output terminal and the second output terminal of the switch circuit, respectively; and a first output terminal and a second output terminal for outputting a result of differentially amplifying the detection voltage; an amplifier comprising a first input terminal and a second input terminal forming a first differential input pair, a third input terminal and a fourth input terminal forming a second differential input pair, and an output terminal, the first input terminal of the amplifier being connected to the output terminal of the amplifier via a first switch, the first input terminal of the amplifier being connected to the first output terminal of the differential amplifier via a first capacitor, the second input terminal of the amplifier being connected to the second output terminal of the differential amplifier; and a detection voltage setting circuit for outputting different voltages to the third input terminal and the fourth input terminal of the amplifier. a switch circuit, which is 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 detection voltage corresponding to the intensity of the physical quantity, the switch circuit comprising a first output terminal for outputting the detection voltage and a second output terminal for outputting the detection voltage; a differential amplifier comprising: a first input terminal and a second input terminal, which are connected to the first output terminal and the second output terminal of the switch circuit, respectively; and a first output terminal and a second output terminal for outputting a result of differentially amplifying the detection voltage; an amplifier comprising a first input terminal and a second input terminal forming a first differential input pair, a third input terminal and a fourth input terminal forming a second differential input pair, and an output terminal, the first input terminal of the amplifier being connected to the output terminal of the amplifier via a first switch, the first input terminal of the amplifier being connected to the first output terminal of the differential amplifier via a first capacitor, the second input terminal of the amplifier being connected to the second output terminal of the differential amplifier; and a detection voltage setting circuit for outputting different voltages to the third input terminal and the fourth input terminal of the amplifier.