A microelectromechanical device comprising: - a frame, - a proof mass, connected to the frame through a first mechanical link which allows pivoting of the proof mass to relative to the frame about a first axis (Δ 1) of rotation parallel to a mean plane of the frame, and - a lever for detecting pivoting of the mass, connected to the proof mass through a second mechanical link (9; 19; 29; 39) allowing rotation of the lever relative to the proof mass about a second axis (Δ 2) parallel to the first axis (Δ 1), - characterised in that the second link (9; 19; 29; 39) comprises: o a first wall (91; 391), perpendicular or virtually perpendicular to the second axis of rotation (Δ 2), and ∘ a second wall, perpendicular to the mean plane of the frame and in parallel or virtually in parallel to the second axis of rotation (Δ 2), o the first wall (91; 391) and the second wall connecting to each other perpendicularly or virtually perpendicularly and connecting, as regards one (91; 391), to the lever and, as regards the other, the proof mass, wherein the frame and the proof mass are called first frame and first proof mass respectively, the device further comprising: - a second frame, - a second proof mass, connected to the second frame through a first additional link which allows pivoting of the second proof mass relative to the second frame about a first additional axis of rotation (Δ' 1), parallel to the first axis of rotation (Δ 1), and wherein - the second proof mass is also connected to the detection lever through a second additional link allowing rotation of the lever relative to the second proof mass about a second additional axis of rotation (Δ' 2) parallel to the first axis of rotation (Δ' 1), - the lever being connected on one side to the first proof mass and on the other side to the second proof mass. - a frame, - a proof mass, connected to the frame through a first mechanical link which allows pivoting of the proof mass to relative to the frame about a first axis (Δ 1) of rotation parallel to a mean plane of the frame, and - a lever for detecting pivoting of the mass, connected to the proof mass through a second mechanical link (9; 19; 29; 39) allowing rotation of the lever relative to the proof mass about a second axis (Δ 2) parallel to the first axis (Δ 1), - characterised in that the second link (9; 19; 29; 39) comprises: o a first wall (91; 391), perpendicular or virtually perpendicular to the second axis of rotation (Δ 2), and ∘ a second wall, perpendicular to the mean plane of the frame and in parallel or virtually in parallel to the second axis of rotation (Δ 2), o the first wall (91; 391) and the second wall connecting to each other perpendicularly or virtually perpendicularly and connecting, as regards one (91; 391), to the lever and, as regards the other, the proof mass, o a first wall (91; 391), perpendicular or virtually perpendicular to the second axis of rotation (Δ 2), and ∘ a second wall, perpendicular to the mean plane of the frame and in parallel or virtually in parallel to the second axis of rotation (Δ 2), o the first wall (91; 391) and the second wall connecting to each other perpendicularly or virtually perpendicularly and connecting, as regards one (91; 391), to the lever and, as regards the other, the proof mass, - a second frame, - a second proof mass, connected to the second frame through a first additional link which allows pivoting of the second proof mass relative to the second frame about a first additional axis of rotation (Δ' 1), parallel to the first axis of rotation (Δ 1), and wherein - the second proof mass is also connected to the detection lever through a second additional link allowing rotation of the lever relative to the second proof mass about a second additional axis of rotation (Δ' 2) parallel to the first axis of rotation (Δ' 1), - the lever being connected on one side to the first proof mass and on the other side to the second proof mass.