The detection of hydrogen sulfide based on surface plasmon resonance (SPR) reflectivity is discussed. The silver film will be sulfated quickly in the environment containing hydrogen sulfide gas and change into silver sulfide film. Through the theoretical simulation and analysis, the characteristics of the Kretschmann configuration surface plasmon resonance spectra before and after the silver film reacting with H2S gas are studied. The intensity of the absorption peak and the position of the resonance angle varied with the change of dielectric constant of the surface silver film, indicating that effects of the H2S gas on the silver film can be readily measured. The results can be used as a reference for designing the toxic or erosive gases instant monitoring devices that can be applied in the industry field and the construction of the sewer.