Position detection device comprising the following: a sensor (31, 32, 33) containing a detection unit (311, 321, 331) configured to output a
signal corresponding to a change in the position of a detection object (3), and a resin section (314, 324, 334) covering the detection unit (311, 321, 331); and a cover (60) formed from a resin having a
linear coefficient of expansion that differs from the
linear coefficient of expansion of the resin section (314, 324, 334) to cover part of the resin section (314, 324, 334) so that the resin section (314, 324, 334) protrudes, wherein the Harz section (314, 324, 334) a prominent surface (401, 402, 403) facing a direction in which the resin section (314, 324, 334) protrudes, and a side surface (411, 412, 413, 414, 415, 416) that is connected to the protruding surface (401, 402, 403), the cover (60) a covering surface (630) facing the direction in which the resin section (314, 324, 334) protrudes, an inclined surface (631, 632, 633, 634, 635, 636) that intersects each of the cover surface (630) and the side surface (411, 412, 413, 414, 415, 416) to intersect each of the cover surface (630) and the side surface (411, 412, 413, 414, 415, 416) to be connected, and a projecting section (651, 661, 662, 663, 664) that projects in the direction in which the Harz section (314, 324, 334) protrudes, the projecting section (651, 661, 662, 663, 664) is connected to the side surface (411, 412, 413, 414, 415, 416) and the inclined surface (631, 632, 633, 634, 635, 636), the side surface (411, 412, 413, 414, 415, 416) is a first side surface (411, 412, 414, 415), the inclined surface (631, 632, 633, 634, 635, 636) is a first inclined surface (631, 632, 634, 635), the Harz section (314, 324, 334) a second side surface (412, 413, 415, 416) which is connected to the protruding surface (401, 402, 403) and the first side surface (411, 412, 414, 415), and a corner section (421, 422, 423, 424) which is a boundary section between the first side surface (411, 412, 414, 415) and the second side surface (412, 413, 415, 416), wherein the cover (60) further comprises a second inclined surface (632, 633, 635, 636) which intersects each of the cover surface (630) and the second side surface (412, 413, 415, 416) in order to be connected to each of the cover surface (630) and the second side surface (412, 413, 415, 416), and the projecting section (661, 662, 663, 664) with each of the first side surface (411, 412, 414, 415), the second side surface (412, 413, 415, 416), is connected to the corner section (421, 422, 423, 424), the first inclined surface (631, 632, 634, 635) and the second inclined surface (632, 633, 635, 636).