When the primary electron beam interacts with the sample, it can cause the emission of secondary electrons from the sample surface. The SED collects these electrons using an electric field and directs them to a scintillator, which converts them into photons. These photons are then amplified and detected, allowing for the creation of an image of the sample's surface topology.