Detecting H 2 S in oxygen-deficient conditions is vital for identifying leaks in SF 6insulated electrical equipment. Current infrared-based detection methods are expensive and sensitive to environmental conditions, highlighting the necessity for cost-effective and stable gas sensors. Existing gas sensors based on semiconducting metal oxides (SMOXs) are limited by redox reactions with oxygen and require high operating temperatures. Here, we introduce a room-temperature (RT) H 2 S sensor for oxygen-deficient environments using the intrinsic c o n d u c t i n g t w o -d i m e n s i o n a l ( 2 D ) m e t a l − o r g a n i c f r a m e w o r k ( M O F ) , Co 1.8 Ni 1.2 (hexaiminotriphenylene) 2 [Co 1.8 Ni 1.2 (HITP) 2 ], overcoming the limitations of SMOX gas sensors. Remarkably, Co 1.8 Ni 1.2 (HITP) 2 sensors exhibit exceptional selectivity for H 2 S with negligible cross-responses and a sensitivity drift of less than 4.13% in an SF 6 atmosphere over 60 days. The Co 1.8 Ni 1.2 (HITP) 2 gas sensor shows significant promise for realtime and stable monitoring of H 2 S gas in oxygen-deficient environments.