Controlling or determining the temperature of the rotor