The present invention discloses a gas sensor, which comprises a housing having an inner cavity, a temperature and
humidity detection device, a composite oil-
gas separation membrane and a gas-sensitive element, wherein the temperature and
humidity detection device, the composite oil-
gas separation membrane and the gas-sensitive element are arranged inside the inner cavity, the lower end of the housing is provided for connecting with an
oil supply electrical device, the composite oil-
gas separation membrane comprises a body membrane and a
porous metal sintering sheet arranged on the body membrane, the composite oil-gas separation membrane is arranged inside the inner cavity of the housing through the body membrane lower end toward the housing, the gas-sensitive element is positioned on one side of the
porous metal sintering sheet of the composite oil-gas separation membrane, and the temperature and
humidity detection device is positioned on one side of the body membrane of the composite oil-gas separation membrane. According to the present invention, the gas sensor has characteristics of small volume, simple installation, low cost and the like; and the trace
moisture, the
oil temperature and the fault gas content in insulating
oil can be concurrently detected, real-time compensation correction can be performed on the detection result according to the insulating
oil temperature detected by the temperature and humidity detection device, the problem of inaccurate detection can be solved, and the detection precision of the gas sensor can be increased.