Molecular terms of dioxygen and nitic oxide are presented. Electron spin resonance spectra of diatomic molecules corresponding to these terms are discussed. Gas-phase ESR can be a convenient method of monitoring paramagnetic pollutants in the atmosphere. We ran additional calculations in molecular physics for terms of these molecules and Zeeman transitions.