Si and SiO<sub>2</sub> as two materials are composed of one-dimensional photonic crystal. Using transfer matrix method,
the optical transmission properties in 1-D photonic crystals is analyzed, and the band gap property of 1-D photonic
crystal is obtained. According to thermo-optical effect and thermal-expansion effect the optical depth and index of
the materials can vary when the temperature varies. So the structure of 1/4 wave-plate stack in traditional photonic
crystals is destroyed and the band structure varies. And the band edges shift. The relationship between temperature
and the band edges of one-dimensional photonic crystals is analyzed numerically. The result shows that it is linear
relationship between the temperature of photonic crystal and the wave-length of the band edges. And analytical
expression of the linear relationship is proposed. The temperature can be measured by the wavelength shift value.
The result can provide theoretical guideline for the design and application of temperature sensor.