Traditional Pt/C electrode materials are prone to corrosion and detachment during H2S detection, leading to a decrease in fuel cell-type sensor performance. Here, a high-performance H2S sensor based on Pt loaded Ti3C2 electrode material with -O/-OH terminal groups was designed and prepared. Experimental tests showed that the Pt/Ti3C2 sensor has good sensitivity (0.162 μA/ppm) and a very low detection limit to H2S (10 ppb). After 90 days of stability testing, the response of the Pt/Ti3C2 sensor shows a smaller decrease of 2% compared to that of the Pt/C sensor (22.9%). Meanwhile, the sensor also has high selectivity and repeatability. The density functional theory (DFT) calculation combined with the experiment results revealed that the improved H2S sensing mechanism is attributed to the fact that the strong interaction between Pt and Ti3C2via the Pt-O-Ti bonding can reduce the formation energy of Pt and Ti3C2, ultimately prolonging the sensor's service life. Furthermore, the catalytic property of Pt can decrease the adsorption energy and dissociation barrier of H2S on Pt/Ti3C2 surface, greatly enhance the ability to generate protons and effectively transfer charges, realizing good sensitivity and high selectivity of the sensor. The sensor works at room temperature, making it very promising in the field of H2S detection in future.