Measuring the contact force