with compensation for variation of ambient temperature