Code to support a range of methane sensors