FBG simulation and experimental temperature measurement