In OES, a sample is introduced into a plasma or spark source that excites the atoms and ions. The excited species then emit light at specific wavelengths, which are detected and analyzed by a spectrometer. The resulting spectrum provides information about the elemental composition and concentration of the sample. The technique is highly sensitive and can detect elements at trace levels.