In this industrial era, the use of low-dimensional nanomaterials as gas sensors for environmental monitoring has received enormous interest. To develop an effective sensing method for ethylene oxide (EO), DFT computations are conducted using method ωB97X-D and B3LYP with 6-31G(d,p) basis set to evaluate the adsorption behavior of ethylene oxide gas on the surfaces of pristine, as well as Scandium and Titanium decorated B12N12, Al12N12, and Al12P12 nanocages. Several properties like structural, physical, and electronic are studied methodically to better understand the sensing behavior. Scandium-decorated aluminum phosphate and boron nitride nanocages were shown to perform better in terms of adsorption properties. The short recovery time observed in this study is beneficial for the repetitive use of the gas sensor. The Natural Bond Orbital and molecular electrostatic potential analysis demonstrated a substantial quantity of charge transfer from adsorbate to adsorbents. The bandgap alternation after adsorption shows an influence of adsorption on electronic properties. The interactions of adsorbate and adsorbents are further studied using the ultraviolet–visible predicted spectrum, and quantum theory of atoms in molecules all of which yielded promising findings.