Detection of gas components