AFM detects this force to determine changes in height or contours on the sample surface. When a probe comes closer to the sample surface, the cantilever bends upwards due to repulsive forces. 1 Other ...