A gas sensor which includes walls delimiting a gas detection chamber, and
having an introduction port (or an inlet) through which an observed gas
is introduced into the gas detection chamber, a measuring element
disposed in the gas detection chamber and measuring concentration of a
subject gas contained in the observed gas, and a heater constituting at
least a portion of the walls, the portion facing the gas detection
chamber.