I want to calculate altitude using a barometer which is mounted in the proximity of a number of components which get quite hot and raise the localised temperature. The barometric pressure equation is dependent on temperature. Most typical mem’s barometers come with an internal temperature sensor - I assume to allow calculation of altitude. However, would the altitude calculation using the barometric pressure equation be incorrect if this calculated using the internal temperature sensor influenced by the localised heating from other devices? Is a temperature reading of the external temperature needed? If the localised temperature effects do influence the altitude calculation then it would necessitate that I remove the components which heat up from the proximity of the barometer or take an external temperature reading at distance unaffected by the localised heating?