Sensors for air and other gases