How and when to measure temperature