In order to explore the temperature adaptability of modulated grating Y-branch laser in optical fiber sensing application, a test system with wavelength stability of 0.6pm is designed and built. The wavelength characteristics of MG-Y laser at different temperatures inside and outside are explored respectively, and the experiment is carried out with a look-up table with an interval of 20pm at 25℃. The results show that 92.30% of the wavelength drift is within ±7pm when the internal temperature is 25℃ and the external temperature is 10℃ in the range of -20~50℃, and the maximum wavelength drift is 3pm in the range of internal and external temperature difference ±5℃; When the external temperature is 25℃ and the internal temperature is within the range of 25~30℃ and steps by 1℃, the mode hopping phenomenon will appear at the switching of the wavelength tuning section. The tuning coefficient range is 85~115pm/℃. It is proved that the optimal temperature of MG-Y laser should be controlled within the range of internal and external temperature difference ±5℃, which provides a reference for solving the problem of wavelength drift caused by temperature change.