A surgical instrument includes an end effector, a magnetic field sensor assembly, and a processor. The end effector includes first and second tissue contacting surfaces configured to receive tissue therebetween. The first tissue contacting surface is movable relative to the second tissue contacting surface between a spaced apart position and an approximated position. The magnetic field sensor assembly includes a first magnetic field sensor disposed on the first tissue contacting surface and a first magnet disposed on the second tissue contacting surface. The processor is connected to the magnetic field sensor. The processor determines a distance between the first and second tissue contacting surfaces based on a detectable signal received from the first magnetic field sensor.