Converting value to temperature