<p>A pressure sensor (1) having a first terminal (35), the first terminal (35) including a horizontal portion (61) and a vertical portion (62) at an intermediate portion thereof and being elastically deformable. A portion of the first terminal (35) being inserted and soldered to a circuit substrate (33) has a collar portion (63) being abutted around a through-hole (51) of the circuit substrate (33). The first terminal (35) is fixed at a state being pressed to the circuit substrate (33) by the collar portion (63) and being slightly compressed between a base member (32). When the circuit substrate (33) and the base member (32) are spaced apart by circumambient heat, the first terminal (35) can follow by the compressed margin. When the first terminal (35) itself is thermally expanded, the first terminal (35) can follow by an elastic deformation of the horizontal portion (61) and the vertical portion (62). Accordingly, stress caused to the soldered portion by a thermal deformation and the like can be relaxed so that the pressure sensor (1) can be applied to a wider temperature range.</p>