PROBLEM TO BE SOLVED: To achieve proper compression detection even on a bending part of an insertion part of an endoscope.SOLUTION: A pressure sensor 30 which is attached to an insertion part 10 of an endoscope 2, in which the insertion part is configured so that, a tip end part 11, a bending part 12 which is bent following to an operation of an operation part 20, and a soft part 13 are continuous, comprises an annular part which is attached to the periphery of the bending part 12, and an inner periphery of the annular part is formed into a size corresponding to the bent part of the bending part 12.SELECTED DRAWING: Figure 1