The AFM operates by measuring the force between a sharp probe, often called a cantilever, and the surface of the sample. As the probe moves across the surface, it deflects. This deflection is monitored using a laser beam that reflects off the back of the cantilever into a photodetector. The resulting data is used to construct a topographic map of the surface.