Squirrel-cage induction machines (IMs) with indirect field-oriented control are widely used in industry and are frequently chosen for their accurate and dynamic torque control. During operation, however, temperature rises leading to changes in machine parameters. The rotor resistance, in particular, alters, affecting the accuracy of the torque control. The authors investigated the effect of a rotor resistance parameter mismatch in the control algorithm on the angular rotor flux misalignment and the subsequent deviation of stator currents and motor torque from their setpoints. Hence, an online, datadriven torque compensation to eliminate the temperature effect is proposed to enable robust torque-controlled IMs. A modelbased analysis and experimental mapping of the temperature effect on motor torque is presented. A temperature-torque lookuptable is subsequently implemented within the control algorithm demonstrating the ability to reduce the detrimental effect of temperature on torque control. Experimental results on a 5.5 kW squirrel-cage induction motor show that the proposed datadriven online temperature compensation method is able to reduce torque mismatch when compared to having no temperature compensation. Up to 17% torque mismatch is reduced at nominal torque and even up to 23% at torque setpoints that are lower than 20% of the nominal torque. A limited torque error of <1% remains in a broad operating range.