A sensor for measuring a first physical quantity whose measurement is influenced by a second physical quantity, said sensor comprising a sensor body inside which are installed: - a first sensitive element configured to measure the first physical quantity; - a second sensitive element configured to measure the second physical quantity; - a memory on which is recorded a compensation table which determines a corrected value of the first physical quantity as a function of the value of the first physical quantity measured by the first sensitive element and of the value of the second physical quantity measured by the second sensitive element; - a processing unit which is connected to the first sensitive element, to the second sensitive element and to the memory, the processing unit being configured to generate a measurement signal of the sensor corresponding to the corrected value of the first physical quantity from the value of the first physical quantity measured by the first sensitive element, from the value of the second physical quantity measured by the second sensitive element, and from the compensation table, said sensor being characterized in that it also comprises a heating component which is configured to heat the processing unit and a temperature sensor which is configured to measure the temperature of the processing unit, the heating component and the temperature sensor being connected to the processing unit, the processing unit being configured to control said heating component to maintain the temperature of the processing unit above a threshold value. said sensor comprising a sensor body inside which are installed: - a first sensitive element configured to measure the first physical quantity; - a second sensitive element configured to measure the second physical quantity; - a memory on which is recorded a compensation table which determines a corrected value of the first physical quantity as a function of the value of the first physical quantity measured by the first sensitive element and of the value of the second physical quantity measured by the second sensitive element; - a processing unit which is connected to the first sensitive element, to the second sensitive element and to the memory, the processing unit being configured to generate a measurement signal of the sensor corresponding to the corrected value of the first physical quantity from the value of the first physical quantity measured by the first sensitive element, from the value of the second physical quantity measured by the second sensitive element, and from the compensation table, - a first sensitive element configured to measure the first physical quantity; - a second sensitive element configured to measure the second physical quantity; - a memory on which is recorded a compensation table which determines a corrected value of the first physical quantity as a function of the value of the first physical quantity measured by the first sensitive element and of the value of the second physical quantity measured by the second sensitive element; - a processing unit which is connected to the first sensitive element, to the second sensitive element and to the memory, the processing unit being configured to generate a measurement signal of the sensor corresponding to the corrected value of the first physical quantity from the value of the first physical quantity measured by the first sensitive element, from the value of the second physical quantity measured by the second sensitive element, and from the compensation table, said sensor being characterized in that it also comprises a heating component which is configured to heat the processing unit and a temperature sensor which is configured to measure the temperature of the processing unit, the heating component and the temperature sensor being connected to the processing unit, the processing unit being configured to control said heating component to maintain the temperature of the processing unit above a threshold value.