Added code for the gas sensor