A sensor device (5) has a sensing portion (50), a connector terminal (52, 53, 54, 55), and a case (51) housing the sensing portion (50) therein and forming a terminal fixing portion (51c). The connector terminal (52, 53, 54, 55) has a fixed portion (52e, 53e, 54e, 55e) fixed in the terminal fixing portion (51c) of the case (51). The connector terminal (52, 53, 54, 55) is electrically connected to the sensing portion (50) through a lead (56, 57, 58, 59) for allowing signal transmission between the sensing portion (50) and an external device. A ratio of the volume of the fixed portion (52e, 53e, 54e, 55e) of the connector terminal (52, 53, 54, 55) to the volume of the fixing portion (51c) of the case (51) is equal to or greater than a predetermined ratio. |