Battery pack temperature measurement