Using distributed feed-back laser diode with high accurate injection current module and temperature controlling module as the light source of optic gas sensor,this paper investigated the characteristics of the harmonic wave created by the gas absorption,and described the relationship between the harmonicwave peak value and the location of light source wavelength in the gas absorption spectrum.By feeding back the harmonicwave peak information to the temperature controlling module,the output central wavelength of the light source was stabilized at the absorption peak position of gas absorption spectrum.The result shows that it is effective on the wavelength control for optical gas sensor.