ESEM uses a series of differential pumping stages and a gaseous environment to maintain a higher pressure around the sample while keeping the electron column under vacuum. This setup enables the imaging of samples in their hydrated state or at varying temperatures. A primary electron beam scans the sample surface, and the interactions between the electrons and the sample produce secondary electrons, which are detected to form an image.