A 
NOx sensor 100 includes a sensor device 110 and a heater 70 capable of heating the sensor device 110. The sensor device 110 includes an inner pump 
electrode 22 and an outer pump 
electrode 23 disposed respectively on the inner side and the outer side of a 
solid electrolyte layer 6. The sensor device 110 detects the concentration of 
NOx by introducing a gas to be measured into a first inner vacancy 20, pumping out 
oxygen in the gas to be measured from the inner pump 
electrode 22 to the outer pump electrode 23, introducing the gas to be measured, from which the 
oxygen has been pumped out, into a second inner vacancy 40, reducing the 
NOx in the gas to be measured, to thereby generate 
oxygen, and detecting the generated oxygen. A characteristic stabilizing layer 24 covers the outer pump electrode 23 and is made of a porous body with a thickness of 10 to 200 μm and a thickness variation of 20% or less.