ATR spectroscopy operates by directing an IR beam into an ATR crystal with a high refractive index. When the IR beam hits the interface between the crystal and the sample, it undergoes total internal reflection. This creates an evanescent wave that penetrates a few micrometers into the sample. Molecules in this penetration depth absorb specific wavelengths of the IR light, which are then measured to produce an IR spectrum.