A flexible probe has an assembly in its distal end that includes a transmitter and a receiver that receives signals from the transmitter for sensing a position of the receiver relative to the transmitter. A resilient element disposed between the transmitter and the receiver is configured to deform in response to pressure exerted on the distal tip when the distal tip engages a wall of a body cavity.