Detection of gasses and volatiles