The invention relates to an apparatus, in particular for ejecting a fluid, having an electric motor (500), the motor comprising at least one motor winding (506a-d), having a control unit (656) for controlling the motor (500), wherein the apparatus further comprises an electronic detection circuitry (620) configured to determine an electrical quantity, the electrical quantity being a function of the electric resistance (Rw) of the motor winding (506a-d), and wherein the control unit (656) is configured to control the motor (500) as a function of the electrical quantity. The invention further relates to a method for controlling such an apparatus, comprising the steps of: determining an electrical quantity, the electrical quantity being a function of the electric resistance (Rw) of the motor winding (506a-d); and controlling the motor (500) as a function of the electrical quantity.