Code to use for the gas detector circuits