Compensating for effects of temperature changes other than those to be measured, e.g. changes in ambient temperature