A temperature sensor, comprising: a first coil element and a second coil element both serving as a part of a coil of an electric apparatus; a first element main body configured to detect the temperature of the first coil element element and a second element main body configured to detect the temperature of the second coil element , each of the first element main body and second element main body respectively including a thermosensitive body and a pair of electric wires connected to the thermosensitive body ; a first electrically insulating covering body that covers the thermosensitive body and at least a part of the electric wires of the first element main body , and a second electrically insulating covering body that covers the thermosensitive body and at least a part of the electric wires of the second element main body ; and a housing that includes an electric insulating resin material, and is configured to house and hold the first coil element , the second coil element , the first element main body , the second element main body , the first covering body and the second covering body , wherein the first covering body and the first coil element come into surface contact with each other, and the second covering body and the second coil element come into surface contact with each other, and wherein the first coil element and the second coil element each include a rectangular cross-section, and respectively include a first counter surface and a second counter surface that face each other, the first element main body is provided corresponding to any surface of the first coil element other than the first counter surface, and the second element main body is provided corresponding to any surface of the second coil element other than the second counter surface. a first coil element and a second coil element both serving as a part of a coil of an electric apparatus; a first element main body configured to detect the temperature of the first coil element element and a second element main body configured to detect the temperature of the second coil element , each of the first element main body and second element main body respectively including a thermosensitive body and a pair of electric wires connected to the thermosensitive body ; a first electrically insulating covering body that covers the thermosensitive body and at least a part of the electric wires of the first element main body , and a second electrically insulating covering body that covers the thermosensitive body and at least a part of the electric wires of the second element main body ; and a housing that includes an electric insulating resin material, and is configured to house and hold the first coil element , the second coil element , the first element main body , the second element main body , the first covering body and the second covering body , wherein the first covering body and the first coil element come into surface contact with each other, and the second covering body and the second coil element come into surface contact with each other, and wherein the first coil element and the second coil element each include a rectangular cross-section, and respectively include a first counter surface and a second counter surface that face each other, the first element main body is provided corresponding to any surface of the first coil element other than the first counter surface, and the second element main body is provided corresponding to any surface of the second coil element other than the second counter surface. <EOS>