Various sensors for detecting different chemicals are commonly utilized for different purposes, including aerospace, quality control, agriculture, medical diagnoses, food safety, and environmental monitoring [[1], [2], [3], [4], [5]]. It is highly important to be able to detect the molecules of different gasses, particularly those with high toxicity, at a very low concentration [6]. Having the chemical formula COX2 (X = Br, Cl, F), Carbonyl halides have been considered as invaluable compounds.