A refractometer is a device used to measure the refractive index (n) of a substance.