Berry phase quantum thermometer