Contaminants detection