Near space environment is the airspace at an altitude of 20 km-100 km, where complex conditions such as low temperature, low pressure, high wind speed and solar radiation exist. As one of the important meteorological parameters, temperature is crucial for space activities, but the influence of the complex environment makes the error of conventional temperature measurement methods large. Therefore, a new microbridge temperature sensor was designed that can reduce solar radiation and achieve a fast response. And through simulation analysis, the three factors influencing the temperature errors of Joule heat, solar radiation heat and aerodynamic heat were investigated. And the influence of temperature error is reduced by optimizing the installation position of the sensor. Through the temperature error model, the error value in the actual measurement value is removed, to realize the high accuracy detection of near-space temperature.