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, a mobile component (4, 4', 4", 4"') able to move or to deform in an out-of-plane direction under the effect of a variation in pressure, and detection means (6, 6') for detecting said movement or said deformation comprising at least one mobile element (61, 61'), 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; - a second connection (5, 5') 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; said mechanical connection being characterised in that it further comprises: - a third connection (7, 7') connecting the lever arm to the detection means (6, 6') at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction, said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction 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 of the at least one mobile element (61, 61') in a direction of translation. - 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; - a second connection (5, 5') 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; said mechanical connection being characterised in that it further comprises: - a third connection (7, 7') connecting the lever arm to the detection means (6, 6') at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction, said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction 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 of the at least one mobile element (61, 61') in a direction of translation. - a third connection (7, 7') connecting the lever arm to the detection means (6, 6') at a given distance (d) from the axis of rotation (Y5, Y5') in the out-of-plane direction, said third connection being adapted to allow rotation about an axis of bending (Y7, Y7') which follows the same direction as the axis of rotation (Y5, Y5'), but which is offset by the distance (d) in the out-of-plane direction 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 of the at least one mobile element (61, 61') in a direction of translation.