Moisture is an important parameter for quality control of several products. Through near-infrared measurements, it is possible to measure moisture from pharmaceutical preparations, paper products and grains, removing the need for chemicals or extensive sample preparation. The measurement itself is non-destructive and fast, normally taking less than one minute per sample.