ambient-temperature compensation