Tunable diode laser absorption spectroscopy (TDLAS) is often used to detect gas concentrations in many fields. But because of the variation of ambient temperature, the measured harmonic signal amplitudes are affected and may lead to the monitoring errors. The impact of temperature on the measurement as well as the temperature compensation method is emphasized. So in order to modify the inversion results and adapt industrial measurement, combustion diagnostics, the numerical fitting empirical modified equation and theoretical modified equation from HITRAN database are discussed and compared in this paper. In experiment, the 21% oxygen as the safety monitoring gas and absorption wavelength at 760.77 nm are employed. Meanwhile, the first harmonic signals are also used to decrease the laser intensity fluctuations. We thus obtained the unmodified and modified results with the tube furnace in the temperature range 300–900 K (interval 50 K). Experimental results show that these two modified methods have some effective influence on the temperature changes and can be applied to gas monitoring correction to improve the accuracy and feasibility of the TDLAS technology. In addition, the methods also provide evidence for the real-time gas monitoring in the application of combustion diagnosis.