Sampling is part of a statistical approach to quality control in production. It involves taking a measurement at regular or random intervals. The measurement can be the reading of a sensor which is built into a production machine, or it may involve taking a sample of material and diverting it to a testing station or laboratory to take measurements.