A gas sensor having a field-effect transistor for detecting gases or gas mixtures is provided. The gas sensor includes a substrate having a source, drain and gate region, a gas-sensitive layer being applied on the gate region. A porous adhesive agent is provided for the adhesion of the gas-sensitive layer in the gate region.