We demonstrate that temperature- and strain-insensitive long-period gratings can be fabricated in conventional optical fibers, The former is employed to measure strain with resolution of 20 mu epsilon under thermal fluctuations in the surroundings, while the latter is used to detect temperature variations as small as 0.8 degrees C in the presence of axial strain. (C) 1997 Society of Photo-Optical Instrumentation Engineers.