As a typical mode of energy from waste, biogas technology is of great interest to researchers. To detect the trace H2S released from biogas, we herein demonstrate a high-performance sensor based on highly H2S-sensitive SnO2 nanocrystals, which have been selectively prepared by solvothermal methods using benzimidazole as a mineralization agent. The sensitivity of as-obtained SnO2 sensor towards 5 ppm H2S can reach up to 357. Such a technique based on SnO2 nanocrystals opens up a promising avenue for future practical applications in real-time monitoring a trace of H2S from the leakage of biogas.