Abstract:A design of the portable oil wells environment monitoring and gas detection system based on STC12C5A60S2 microcontroller,NRF24L01 wireless transmission module and a wireless AV module is proposed to improve Environmental monitoring efforts and the safety production of oil well, which uses gas sensors and the STC12C5A60S2 chip A/D conversion function for data collection, getting the realtime environmentally images captured by the camera with the PTZ.The acquired data and realtime images are transferred to the handheld terminal display by NRF24L01 wireless transmission module and a wireless AV module, and experimental results show that the device can realtime returns environmental picture and the accuracy of the gas concentration. The error is allowed. The use of the device is good for enhancing the safety of detecting person and detection efficiency, and ensuring the detection accuracy, which has good practicability.