In this study, utilizing density functional theory, the C3N1 monolayer modified by Ir, Pd, Pt, and Rh atoms (Ir/Pd/Pt/Rh-C2N1) was chosen for selective adsorption of C2H2 amidst multiple gases (H2O, C2H2, and C4H10O2). According to the results of cohesive energy and ab initio molecular dynamics simulations, it is indicated that precious metal atoms can be stably anchored on the monolayer while enhancing the conductivity of the material The analysis of the electrostatic potential and work function determined the highly active sites and electron release capacity. In addition, the adsorption energy and distance disclosed the gas-solid interface structure of multiple gases on the Ir/Pd/Pt/Rh-C2N1 monolayer. Importantly, C2H2 exhibits strong responses to p-type semiconductor Pt-C2N1 and n-type semiconductor Ir-C2N1, respectively. Crystal Orbital Hamilton Population reveals the difference in adsorption energy due to modifications involving four precious metals. Interestingly, for the first time, the density of states calculation reveals that under the coexistence of multiple gases, the Pt/Ir-C2N1 monolayer effectively eliminates the interference of other gases and has a unique response only to C2H2. In real situations, with the basis of Gibbs free energy and Einstein's law of diffusion, it was determined that Pt-C2N1 and Ir-C2N1 showed excellent hydrophobicity, a wider temperature range, and a low diffusion activation energy barrier. In summary, Pt-C2N1 and Ir-C2N1 detect C2H2 without interference, maintaining fundamental principles, responsiveness, stability, and versatility unaffected by external factors.