Drift is one of the most serious impairments afflicting gas sensors. It can be seen as a gradual change in the sensor response over a long period of time when the external conditions are constant. This paper proposes a simple correction method based on local linear regression. Use the original data as a fitting plane to correct the drift of the sensor. Using linear regression and local linear regression to process the original data respectively, it is found that both methods are effective and the local linear regression effect is better.