In some implementations, a UAV flight system can dynamically adjust UAV flight operations based on thermal sensor data. For example, the flight system can determine an initial flight plan for inspecting a flare stack and configure a UAV to perform an aerial inspection of the flare stack. Once airborne, the UAV can collect thermal sensor data and the flight system can automatically adjust the flight plan to avoid thermal damage to the UAV based on the thermal sensor data.