AFM uses a cantilever with a sharp tip to interact with the cell surface. As the cantilever moves over the sample, it deflects due to forces between the tip and the surface. These deflections are detected by a laser beam reflected off the back of the cantilever onto a photodetector. By measuring these deflections, a detailed topographical map of the cell surface can be constructed.