The prediction method of dynamic wavelength is proposed for temperature tuning process. The temperature of the thermistor integrated in laser diode (LD) module is recorded to predict the LD chip temperature. Then according to the injection current and priori tuning characteristics of the LDs, the emission wavelength is estimated in real time. The method is validated by using a 1.58 μm distributed feedback (DFB) LD. The absorption spectra of mixture gas of CO2 and CO are measured by means of the thermal tuning gas sensing system. The center wavelength of each absorption line is compared with the data in HITRAN2012 database. The results show that the deviations are less than 5 pm. This method fully meets the needs of spectroscopic measurement, and can be applied to spectroscopy, optical communications and other fields.