with compensation for ambient temperature