Traditional harmful gas detection means can not achieve full range, high mobility, three-dimensional monitoring. Sometimes traditional harmful gas detection means need people to enter the harmful gas area, so it has a certain risk. This design proposes a method of hazardous gas detection based on the four-rotor aircraft, which combines the flight control and harmful gas detection. So this design is a good solution to the shortcomings of traditional harmful gas detection methods. Using the remote control let the four-rotor aircraft to fly into the harmful gas area. MQ135 sensor on the four-rotor aircraft outputs an analog voltage signal to the STM32 processor after detecting hazardous gas. The STM32 processor converts the analog voltage signal into digital signal and transmits it to the handheld terminal through the NRF24L01 wireless module. After receiving the digital signal, handheld terminal calculates the concentration of harmful gas in accordance with the formula and the concentration value is displayed in real time.