Gluten -- a substance found in grains – is an allergen for some people. When processing gluten-free and other grains, cross contamination is a risk. This article describes how NIR spectroscopy combines with machine vision for accurate sorting of glutenous grains.