update temperature