A cooling device comprising a cooling compartment wherein the foods are placed to be cooled, a freezing compartment wherein the foods are placed to be frozen, which is kept at temperatures lower than the cooling compartment, a compressor which provides the compression of the refrigerant fluid, at least one evaporator which provides the cooling of the cooling and freezing compartments (2, 3) by providing heat transfer between the refrigerant fluid and the environment, a heat sensor which measures the temperature of the cooling compartment for the control of the cooling operation and a control unit which - controls the operation of the compressor according to the data detected by the heat sensor - compares the temperature (Ts) detected by the heat sensor and the cut-out temperature (T Scut-out) of the compressor predetermined by the producer during the cooling operation and deactivates the compressor when the temperature (T S) detected by the heat sensor reaches the cut-out temperature (T Scut-out) of the compressor predetermined by the producer - compares the temperature (Ts) detected by the heat sensor and the cut-in temperature (T Scut-in) of the compressor predetermined by the producer when the compressor is deactivated and reactivates the compressor when the temperature (T S) detected by the heat sensor reaches the cut-in temperature (T Scut-in) of the compressor predetermined by the producer, - activates the compressor at least for a time (t compON) predetermined by the producer, in case the time wherein the compressor remains deactivated (t compOFF) reaches the limit time (t compOFFlim) predetermined by the producer, even if the temperature (Ts) detected by the heat sensor does not reach the temperature of the activation (T Scut-in) of the compressor, wherein the compressor is not deactivated before the time (t compON) is completed even if the temperature (T S) detected by the heat sensor reaches the cut-out temperature (T Scut-out) of the compressor predetermined by the producer before this time (t compON) is completed, characterized in that the compressor is continued to be operated until the cut-out temperature (T Scut-out) of the compressor is reached, if the temperature (T S) detected by the heat sensor does not reach the cut-out temperature (T SsCut-out) of the compressor predetermined by the producer when the time (t compON) is completed. - controls the operation of the compressor according to the data detected by the heat sensor - compares the temperature (Ts) detected by the heat sensor and the cut-out temperature (T Scut-out) of the compressor predetermined by the producer during the cooling operation and deactivates the compressor when the temperature (T S) detected by the heat sensor reaches the cut-out temperature (T Scut-out) of the compressor predetermined by the producer - compares the temperature (Ts) detected by the heat sensor and the cut-in temperature (T Scut-in) of the compressor predetermined by the producer when the compressor is deactivated and reactivates the compressor when the temperature (T S) detected by the heat sensor reaches the cut-in temperature (T Scut-in) of the compressor predetermined by the producer, - activates the compressor at least for a time (t compON) predetermined by the producer, in case the time wherein the compressor remains deactivated (t compOFF) reaches the limit time (t compOFFlim) predetermined by the producer, even if the temperature (Ts) detected by the heat sensor does not reach the temperature of the activation (T Scut-in) of the compressor,