A sensor includes: a tubular needle member that includes a side wall and defines a hollow portion; and a linear detection member located in the hollow portion. The side wall of the needle member includes a thick portion that is thicker than another portion of the side wall in a cross-section of the needle member, and wherein the thick portion protrudes toward the hollow portion.