A device for measuring particulate matter includes a light source that emits light, a receiver positioned to receive light emitted from the light source, and a detection unit in communication with the receiver. A cell of a cell library is electronically selected. The circuit board is disposed in the accommodation space.