Merge "Use the latest temperature read as base for headroom calculation" into main