In this paper, a micro pressure sensor based on photonic crystals considering temperature influence is proposed, which is composed of two parts of micro-pressure sensor and temperature sensor. The micro-pressure sensor measures the pressure in the temperature environment. Both parts of the sensors use the coupling of waveguide and cavity to achieve the function of band rejection filter. According to the linear redshift of rejection model, the corresponding temperature value and the pressure value at the temperature were calculated, and the influence of the temperature on the refractive index of the device was calculated by the thermo-optic effect and the thermal expansion effect, then the real micro pressure was obtained. In this thesis, the structural parameters were optimized to achieve 1.33 nm/μN micro-pressure sensitivity.