A pressure sensor which detects variation in pressures, comprising: a hollow sensor main body which includes a cavity formed inside the sensor main body and a communication opening which allows the cavity and the outside of the sensor main body to communicate with each other; and a cantilever which is disposed so as to close the communication opening in a cantilever state in which a distal end portion of the cantilever is a free end and a proximal end portion thereof is supported by the sensor main body , and which is bent according to a pressure difference between the cavity and the outside of the sensor main body , wherein a gap which configures a portion of the communication opening is formed on the proximal end portion , wherein the proximal end portion is partitioned into a plurality of branch portions by the gap in a second direction (L2) orthogonal to a first direction (L1) in which the proximal end portion and the distal end portion are connected to each other, the first direction (L1) and the second direction (L2) being defined in a plan view of the pressure sensor , and wherein at least any one of the plurality of branch portions includes a displacement detection portion which detects displacement according to the bending of the cantilever on the basis of a change in a resistance value corresponding to the displacement, wherein a length (Wd) of the displacement detection portion along the second direction (L2) is shorter than a length (W) of the branch portion along the second direction (L2), characterized in that the displacement detection portion includes a plurality of branch detection portions which are electrically partitioned in the second direction (L2) by a partition portion having a larger resistance value than that of the displacement detection portion , and wherein the branch detection portions are electrically connected to each other so as to wrap around the outside of the partition portion. a hollow sensor main body which includes a cavity formed inside the sensor main body and a communication opening which allows the cavity and the outside of the sensor main body to communicate with each other; and a cantilever which is disposed so as to close the communication opening in a cantilever state in which a distal end portion of the cantilever is a free end and a proximal end portion thereof is supported by the sensor main body , and which is bent according to a pressure difference between the cavity and the outside of the sensor main body , wherein a gap which configures a portion of the communication opening is formed on the proximal end portion , wherein the proximal end portion is partitioned into a plurality of branch portions by the gap in a second direction (L2) orthogonal to a first direction (L1) in which the proximal end portion and the distal end portion are connected to each other, the first direction (L1) and the second direction (L2) being defined in a plan view of the pressure sensor , and wherein at least any one of the plurality of branch portions includes a displacement detection portion which detects displacement according to the bending of the cantilever on the basis of a change in a resistance value corresponding to the displacement, wherein a length (Wd) of the displacement detection portion along the second direction (L2) is shorter than a length (W) of the branch portion along the second direction (L2), characterized in that the displacement detection portion includes a plurality of branch detection portions which are electrically partitioned in the second direction (L2) by a partition portion having a larger resistance value than that of the displacement detection portion , and wherein the branch detection portions are electrically connected to each other so as to wrap around the outside of the partition portion. <EOS>