Fiber Bragg grating is sensitive to temperature and strain, which lead to the temperature compensation must be considered when the FBG strain sensor is applied. Discussed several typical temperature compensation scheme for the applicability of the FBG strain sensor, analyzed the important factors which affected the compensation accuracy of FBG strain sensor. Based on the reference grating temperature compensation scheme, we designed an encapsulation structure of FBG strain sensor with built-in temperature compensation grating. This structure is simple, practical; also calibration test and outdoor test have proved that it has a good temperature compensation effect.