Sniffing out contaminants