An optical detector device may receive a spectroscopic measurement from a multispectral sensor. The optical detector device may determine, based on the spectroscopic measurement, a particulate size of a particulate. The optical detector device may determine, based on the spectroscopic measurement, an identification of the particulate. The optical detector device may determine, based on the particulate size and the identification of the particulate, that an alert condition is satisfied. The optical detector device may trigger an alert based on determining that the alert condition is satisfied.