STM uses a sharp conducting tip placed very close to the sample surface. A voltage applied between the tip and the sample allows electrons to tunnel through the vacuum gap, creating a tunneling current that is sensitive to the distance between the tip and the sample. STM can achieve sub-angstrom resolution, allowing researchers to visualize and manipulate individual atoms.