A mechanical connection for a microelectromechanical and/or nanoelectromechanical device for measuring a variation in pressure, said device comprising a fixed component extending in a main plane (OXY), a mobile component (4, 4', 4", 4"') able to move or to deform in an out-of-plane direction (Z) under the effect of a variation in pressure, and detection means for detecting said movement or said deformation comprising at least one mobile element , the mechanical connection comprising: - a lever arm ; - a first connection connecting the mobile component (4, 4', 4", 4′′′) to a first end (10.1) of the lever arm , said first connection being adapted to transmit the out-of-plane movement of said mobile component to said first end of the lever arm while allowing the out-of-plane rotation of said lever arm about a direction of rotation (Y); - a second connection connected to the second end (10.2) of the lever arm and configured to allow mainly an out-of-plane rotation of the lever arm about an axis of rotation (Y5, Y5') extending in the direction of rotation (Y); said mechanical connection being characterised in that it further comprises: - a third connection connecting the lever arm to the detection means at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction (Z), said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction (Y) as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction (Z) from said axis of rotation, so as to convert the rotation of the lever arm about said axis of rotation into a translation in the plane (OXY) of the at least one mobile element in a direction of translation (X). - a lever arm ; - a first connection connecting the mobile component (4, 4', 4", 4′′′) to a first end (10.1) of the lever arm , said first connection being adapted to transmit the out-of-plane movement of said mobile component to said first end of the lever arm while allowing the out-of-plane rotation of said lever arm about a direction of rotation (Y); - a second connection connected to the second end (10.2) of the lever arm and configured to allow mainly an out-of-plane rotation of the lever arm about an axis of rotation (Y5, Y5') extending in the direction of rotation (Y); said mechanical connection being characterised in that it further comprises: - a third connection connecting the lever arm to the detection means at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction (Z), said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction (Y) as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction (Z) from said axis of rotation, so as to convert the rotation of the lever arm about said axis of rotation into a translation in the plane (OXY) of the at least one mobile element in a direction of translation (X). - a third connection connecting the lever arm to the detection means at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction (Z), said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction (Y) as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction (Z) from said axis of rotation, so as to convert the rotation of the lever arm about said axis of rotation into a translation in the plane (OXY) of the at least one mobile element in a direction of translation (X). <EOS>