The working principle of STEM involves focusing a coherent electron beam onto a very small probe that scans across the sample. The transmitted electrons are collected by various detectors positioned below the sample. These detectors can capture bright-field, dark-field, and high-angle annular dark-field (HAADF) signals, providing different types of contrast and information about the sample.