An optical fiber extrinsic Fabry–Perot interferometer (EFPI) is designed and fabricated for refractive index (RI) sensing. To test the RI of liquid, the following two different methods are adopted: the wavelength tracking method and the Fourier-trans