An SEM operates by directing a focused beam of electrons onto the surface of a specimen. These electrons interact with the atoms in the sample, producing a variety of signals that are captured and analyzed to form an image. The primary signals include secondary electrons, backscattered electrons, and characteristic X-rays. Each of these signals provides different types of information about the sample's topography, composition, and other properties.