Maintains optimal temperature conditions within a spacecraft, protecting the onboard equipment from extreme temperatures.