A machine for processing liquid or semi-liquid food products, comprising: - an element for containing the product to be dispensed and equipped with a mouth for dispensing the product; - a stirrer mounted inside the containing element and rotating about a stirring axis to stir the product to be dispensed; - a first actuator, defined by an electric motor and connected to the stirrer to set it in rotation about the stirring axis; - a refrigeration system comprising a circuit configured to cause a heat exchanger fluid to circulate in a circulating direction and including an evaporator associated with the containing element, a compressor located downstream of the evaporator in the circulation direction, a condenser located downstream of the compressor and a pressure reducing element located between the condenser and the evaporator; - a fan rotating about an axis of rotation to force an air flow towards the condenser of the refrigeration system; - a control unit connected to the fan to control the fan through a speed signal and also connected to the stirrer to drive the stirrer in rotation and to the compressor to drive the compressor; characterized in that the machine also comprises a temperature sensor, located downstream of the condenser in the circulation direction of the heat exchanger fluid to detect a condensation temperature (Tc) and configured to send to the control unit a temperature signal representing the condensation temperature, and wherein the control unit is programmed to generate the speed signal as a function of the temperature signal and wherein the control unit is programmed to vary the operating configuration of the fan between a first operating configuration to which correspond a first rotation speed of the fan, for values of the temperature sensor lower than a first threshold temperature, and a second operating configuration C2 to which correspond a second rotation speed of the fan, for values of the temperature sensor above the first threshold temperature, the control unit being configured to measure and calculate the working hours of the machine, to set the first operating configuration or the second operating configuration as a function of the working hours of the machine,and wherein the control unit is programmed to increase the rotation speed v of the fan with increasing operating hours, by determining a first updated threshold temperature determined as a function of the operating hours of the machine, the higher the number of operating hours of the machine, the lower the first updated threshold temperature. - an element for containing the product to be dispensed and equipped with a mouth for dispensing the product; - a stirrer mounted inside the containing element and rotating about a stirring axis to stir the product to be dispensed; - a first actuator, defined by an electric motor and connected to the stirrer to set it in rotation about the stirring axis; - a refrigeration system comprising a circuit configured to cause a heat exchanger fluid to circulate in a circulating direction and including an evaporator associated with the containing element, a compressor located downstream of the evaporator in the circulation direction, a condenser located downstream of the compressor and a pressure reducing element located between the condenser and the evaporator; - a fan rotating about an axis of rotation to force an air flow towards the condenser of the refrigeration system; - a control unit connected to the fan to control the fan through a speed signal and also connected to the stirrer to drive the stirrer in rotation and to the compressor to drive the compressor;