Gas analyzers find applications in the upstream, midstream, and downstream sectors of the oil and gas industry. These are used in tracing gas purity, perform contamination analysis, compositional analysis, and hydrocarbon analysis. In the oil and gas upstream sector, during exploration, several gases such as carbon dioxide, sulfur oxide, and nitrogen oxide are released from the oil and gas fields, which can be hazardous to both infrastructure and people working in the vicinity. Therefore, it is crucial to accurately identify the type of gas and its contents.