This document discusses near infrared (NIR) spectroscopy and its use in measuring chemical concentrations online. NIR photons interact with molecules, causing vibrations that can be measured to determine concentrations. Different molecules absorb different wavelengths. Modern diode array NIR systems simultaneously collect data at all wavelengths without moving parts, providing sensitive, rapid online analysis of properties like protein, moisture and hardness in grains and flours. Benefits include automatic process control and optimization, faster start-up and grade changes, and reduced need for personnel. Systems shown analyze wheat, flour and semolina at throughputs up to 30 tonnes/hour.