A protector with a sensor comprising: an installation base member operatively coupled on a peripheral edge of a 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 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 a shape of a tube, the hollow part having core wires (54, 55), two conductive parts and a space provided therein, the hollow part comprising synthetic rubber having flexibility, the two conductive parts (54, 55) having the core wires (31, 32) embedded therein respectively, the space being positioned between the two conductive parts (54, 55); an inner-cabin side end and an outer-cabin side end of the hollow part being connected with the installation base member, the inner-cabin side end and the outer-cabin side end being at a distance from each other in which: when an object is disposed between said panel and said opening, and makes contact with said hollow part when said panel is moved towards a closed position, a corresponding change in electric signal detects said object; and in a terminal part, said core wires (31, 32) drawn out in a longitudinal direction are connected with two leads, said two leads being joined with a control unit, wherein: said two conductive parts (54, 55) comprise a conductive part on a lower part of the hollow part and a conductive part on an upper part of the hollow part, the lower part of the hollow part being a side of said installation base member, the upper part of the hollow part being a side of a top end of the hollow part (54, 55); said two conductive parts are shaped and positioned in a manner that an inner-cabin side end and an outer-cabin side end of said space are continuously provided directly on an inner peripheral surface of an outer coat of said hollow part; characterized in that a coating layer covers: appropriate parts of the outer peripheral surface of the outer coat of the hollow part; said appropriate parts are on the parts of the inner peripheral surface having the inner-cabin side end and the outer-cabin side end of the space continuously provided directly thereon. when an object is disposed between said panel and said opening, and makes contact with said hollow part when said panel is moved towards a closed position, a corresponding change in electric signal detects said object; and in a terminal part, said core wires (31, 32) drawn out in a longitudinal direction are connected with two leads, said two leads being joined with a control unit, wherein: said two conductive parts (54, 55) comprise a conductive part on a lower part of the hollow part and a conductive part on an upper part of the hollow part, the lower part of the hollow part being a side of said installation base member, the upper part of the hollow part being a side of a top end of the hollow part (54, 55); said two conductive parts are shaped and positioned in a manner that an inner-cabin side end and an outer-cabin side end of said space are continuously provided directly on an inner peripheral surface of an outer coat of said hollow part; characterized in that a coating layer covers: appropriate parts of the outer peripheral surface of the outer coat of the hollow part; said appropriate parts are on the parts of the inner peripheral surface having the inner-cabin side end and the outer-cabin side end of the space continuously provided directly thereon. said two conductive parts (54, 55) comprise a conductive part on a lower part of the hollow part and a conductive part on an upper part of the hollow part, the lower part of the hollow part being a side of said installation base member, the upper part of the hollow part being a side of a top end of the hollow part (54, 55); said two conductive parts are shaped and positioned in a manner that an inner-cabin side end and an outer-cabin side end of said space are continuously provided directly on an inner peripheral surface of an outer coat of said hollow part; characterized in that a coating layer covers: appropriate parts of the outer peripheral surface of the outer coat of the hollow part; said appropriate parts are on the parts of the inner peripheral surface having the inner-cabin side end and the outer-cabin side end of the space continuously provided directly thereon.