In conventional experimental teaching college physics , reported long-period fiber gratings ( LPFGs )had low refractive index sensitivity and normally possessed positive temperature sensitivity, and they couldn’ elfectively eliminate temperature crosstalk by combining them with fiber Bragg gratings( FBGs) .Herein , throughfemtosecond laser direct writing technology, we have fabricated a temperature-compensated high-sensitivityoptical fiber gratings sensor by cascading microfiber Bragg gratings( mFBG) with small-period microfiber longperiod gratings ( SP-mFLPG ). This sensor has merits of compact size, highly stable, high relractive index sensitivity of 759. 02 nm/RIU, and characteristic of temperature compensation. For such an experimentalteaching of sensor fabrication , it can contribute to undergraduate fundamental teaching, that offering morepossibilities for innovative teaching experiments. Students could take participate in experimental fabrication andmeasurement of micro/nano optical fiber devices, which could help them to enhance hands-on abilityconcentration ,and research literacy. More importantly , students can engage in innovative fiber-optic structuraldesign, and their interest of novel fiber devices and sensor applications can be sparked. lt can lay a solid foundation for their further studies and education.