A temperature control method for controlling temperature of a gas sensor including at least a detection element section and a heater for heating the detection element section, the detection element section including a solid electrolyte body and a pair of electrodes disposed on the solid electrolyte body,
- wherein the gas sensor has an information code in which inherent characteristic information is recorded, the inherent characteristic information being information specific to the detection element section and which specifies a relation between a temperature and an internal resistance of the detection element section and allows setting a relation between a change in the temperature of the detection element section and a change in the internal resistance of the detection element section between the pair of electrodes,
- wherein the temperature control method comprises:
- a reading step of reading the inherent characteristic information recorded in the information code using an information reader;
- a relational expression modifying step of modifying at least one parameter of a relational expression based on the relation between the temperature and internal resistance of the detection element section specified by the inherent characteristic information read in the reading step;
- and
- a control step of detecting the internal resistance of the detection element section using a processor and controlling energization of the heater using the processor based on the modified relational expression and the internal resistance detected by the processor.