Method for producing a temperature sensor for measuring the temperature of a component or of a fluid, the said sensor comprising: - a protective sheath inside which a temperature-measuring element is installed, which sheath has a closed end, a wire-inlet end, and an active part which, in use, is in contact with the component or the fluid the temperature of which is to be measured, - a cable having a first end connected to the sheath at its input end and a second end designed to be connected to an apparatus for processing the signals delivered by the measurement element, the said method consisting in: - using a flexible cable formed of conducting wires covered in an electrically insulating material based on inorganic fibres impregnated with an adhesive binder, the said wires and the said insulating material being surrounded by an external protective braid, - connecting the conducting wires to the measurement element so that the said wires covered with the electrically insulating material arrive in the active part of the sheath, characterized in that: - prior to first use of the sensor for measuring a temperature, the said method comprises steps consisting in: ∘ heating the protective sheath to a temperature such that the electrically insulating material contained at least in the active part of said sheath emits vapours, ∘ removing these vapours from the sheath until no such vapours remain, - the steps of heating the protective sheath and of removing the vapours are sustained until such point as the adhesive binder of the electrically insulating material contained in the active part of said sheath is in the form of dry powder. - a protective sheath inside which a temperature-measuring element is installed, which sheath has a closed end, a wire-inlet end, and an active part which, in use, is in contact with the component or the fluid the temperature of which is to be measured, - a cable having a first end connected to the sheath at its input end and a second end designed to be connected to an apparatus for processing the signals delivered by the measurement element, - using a flexible cable formed of conducting wires covered in an electrically insulating material based on inorganic fibres impregnated with an adhesive binder, the said wires and the said insulating material being surrounded by an external protective braid, - connecting the conducting wires to the measurement element so that the said wires covered with the electrically insulating material arrive in the active part of the sheath, - prior to first use of the sensor for measuring a temperature, the said method comprises steps consisting in: ∘ heating the protective sheath to a temperature such that the electrically insulating material contained at least in the active part of said sheath emits vapours, ∘ removing these vapours from the sheath until no such vapours remain, ∘ heating the protective sheath to a temperature such that the electrically insulating material contained at least in the active part of said sheath emits vapours, ∘ removing these vapours from the sheath until no such vapours remain, - the steps of heating the protective sheath and of removing the vapours are sustained until such point as the adhesive binder of the electrically insulating material contained in the active part of said sheath is in the form of dry powder.