Detection of hazardous chemicals