fix reading temperature