A protector with a sensor comprising: an installation base member for being operatively coupled on a peripheral edge of an opening/closing panel which moves between at least two positions to open and close an opening of an automobile body or on a peripheral edge of said opening of the automobile body, the opening/closing panel including a door and a sun roof of an automobile; and a hollow part unified with the installation base member, the hollow part having two core wires (31, 32) and a space provided therein, the space being positioned between the two core wires (31, 32); said installation base member and said hollow part form-ing an extrusion molded part made of a rubber like elastic body, in which: when an object is disposed between said opening/closing panel and said opening and makes contact with said hollow part when said opening/closing panel is moved towards a closed position, a corresponding change in electric signal detects said object; and in a terminal part of said extrusion molded part, said core wires (31, 32) drawn out in a longitudinal direction are connected with two leads (36, 36) drawn out from an end part of a wire harness, said two leads (36, 36) being joined with a control unit, said two leads (36, 36) being covered with an insulator, the wire harness being formed by tying the two leads (36, 36) and covering the two leads (36, 36) with skin, and one end side of an insert made of a non-conductive material is inserted in and fills up said space, and said terminal part of said extrusion molded part is die molded, wherein: the terminal part of said extrusion molded part has a primary sealing layer and a secondary sealing layer formed thereon by means of injection molding respectively, said primary sealing layer covering wire connection parts (70, 70) of said core wires (31, 32) and said leads (36, 36) and another end side of said insert while also covering the skin of said wire harness, and said secondary sealing layer being piled on and covering the primary sealing layer, and said secondary sealing layer forming an external shape of a product, wherein the insert is made of material which fuses the primary sealing layer, the insert, the primary sealing layer and the secondary sealing layer being thereby unified, and the skin of the wire harness fuses the primary sealing layer. when an object is disposed between said opening/closing panel and said opening and makes contact with said hollow part when said opening/closing panel is moved towards a closed position, a corresponding change in electric signal detects said object; and in a terminal part of said extrusion molded part, said core wires (31, 32) drawn out in a longitudinal direction are connected with two leads (36, 36) drawn out from an end part of a wire harness, said two leads (36, 36) being joined with a control unit, said two leads (36, 36) being covered with an insulator, the wire harness being formed by tying the two leads (36, 36) and covering the two leads (36, 36) with skin, and one end side of an insert made of a non-conductive material is inserted in and fills up said space, and said terminal part of said extrusion molded part is die molded, wherein: the terminal part of said extrusion molded part has a primary sealing layer and a secondary sealing layer formed thereon by means of injection molding respectively, said primary sealing layer covering wire connection parts (70, 70) of said core wires (31, 32) and said leads (36, 36) and another end side of said insert while also covering the skin of said wire harness, and said secondary sealing layer being piled on and covering the primary sealing layer, and said secondary sealing layer forming an external shape of a product, wherein the insert is made of material which fuses the primary sealing layer, the insert, the primary sealing layer and the secondary sealing layer being thereby unified, and the skin of the wire harness fuses the primary sealing layer. the terminal part of said extrusion molded part has a primary sealing layer and a secondary sealing layer formed thereon by means of injection molding respectively, said primary sealing layer covering wire connection parts (70, 70) of said core wires (31, 32) and said leads (36, 36) and another end side of said insert while also covering the skin of said wire harness, and said secondary sealing layer being piled on and covering the primary sealing layer, and said secondary sealing layer forming an external shape of a product, wherein the insert is made of material which fuses the primary sealing layer, the insert, the primary sealing layer and the secondary sealing layer being thereby unified, and the skin of the wire harness fuses the primary sealing layer.