A device for measuring a force, includes: a fastening apparatus; and a sensor, which includes a measuring member arranged to move along a measurement axis, the sensor being arranged to measure a force exerted on the measuring member depending on the movement of this measuring member. The fastening apparatus is arranged to exert, during a movement of the measuring member along this measurement axis, on a carrier to which they are fastened, an average force borne by the measurement axis.