Estimating temperature via sequential measurements