1 Introduction

Photonic crystal fibers (PCFs), also known as microstructured fibers or porous fibers, are a new type of conductive fiber media. The emergence of the internet has promoted the high standard requirements in the field of communication with the continuous update and development of science and technology, such as large capacity, high efficiency, low cost and so on, which are the goals people are striving to pursue. Fiber optic electronic devices are also developing rapidly in this field. The performance of PCF can be changed by filling different materials in the air holes of the fiber, such as hydrogen (Couny et al. 2007), metals (Jiang et al. 2015), chloroform (Yang et al. 2013), ethanol (Wu et al. 2014), or temperature sensitive materials (Abramov et al. 1999). In recent years, the technology of combining optical fiber with sensing has become more mature, and optical fiber sensors have become research highlights. Scientists have conducted a lot of subject study on sagnac interferometer sensors to develop sensors in various application fields, such as temperature sensors (Zhang and Kahrizi 2007; Hirayama and Sano 2000; Fan et al. 2022), strain sensors (Qi et al. 2021), torsion sensors (Zhang et al. 2022), biochemical sensors (Mahajan et al. 2015) and so on.

The research of optical fiber temperature sensor based on sagnac interferometer has made rapid progress in continuous updating and development. In 2012, Zhao et al. (2012) studied a temperature sensor based on fiber sagnac interferometer (OFSI) and alcohol non-fully-filled high-birefringence photonic crystal fiber (HiBi-PCF). The temperature sensitivity of the sensor is approximately − 1.17 nm/°C, which is only one-sixth of the fully filled HiBi-PCF OSFI. In 2015, Shao et al. (2015) designed a novel optical fiber temperature sensor using two cascaded sagnac interferometers, the sensitivity raised about 9 times. The data indicate that the sensitivity increases from 1.46 to 13.36 nm/°C. In 2016, Shi et al. (2016) proposed a temperature sensor based on a reflective sagnac fiber ring laser. The high temperature sensitivity is provided by downloading the reflective sagnac ring from the fiber-in-fiber ring laser as the filter and sensing head. A temperature sensor system with a temperature sensitivity of 1.739 nm/°C was obtained. In 2018, Shi et al. (2018) studied a high-sensitivity PCF temperature sensor based on sagnac interferometer. The temperature sensitivity were − 8.7657 nm/°C and 16.8142 nm/°C when the temperature increases from 45 to 75 °C. The sensitivity were − 7.848 nm/°C and 16.655 nm/°C when the temperature changes between 10 and 45 °C.

However, the optical fiber sensor based on sagnac interferometer with a single structure has been unable to meet people’s requirement for measurement under different conditions. In 2019, Ma et al. (2019) devised a temperature sensor based on sagnac interferometer and liquid crystal PCF. The simulation results reveal that the temperature sensitivity and resolution can reach 15 nm/k and 6.7E−4 k in the range of 290–320 k. In 2020, Liu (2020) et al. invented a ring-shaped PCF temperature sensor based on sagnac interferometer (SI). During numerical analysis, one method is to fill the whole pore with temperature-sensitive liquid, which can realize single sensing interference inclination angle, and the average sensitivity reached 18.27 nm/°C. Another approach is to fill only large sized air holes with temperature sensitive liquid. And two sensing interference inclination angles with good linearity can be simultaneously realized. The corresponding mean sensitivities were 9.47 nm/°C and 8.57 nm/°C. In 2021, Md. Shakhawath Hossain et al. (2021) demonstrated a sulfide PCF temperature sensor based on sagnac interferometer. The simulation results display that the effect of the structure of total infiltration is better than the structure of local infiltration. The resulting sensitivities were − 5.77 nm/°C and 8.49 nm/°C from 25 to 85 °C.

The proposed PCF temperature sensor based on sagnac interferometer, a full filling method was used to fill temperature sensitive liquid in the fiber cores of the PCF, and the parameters d0, d1 and d2 that can affect the structural changes of the PCF are modified. The structure is selected by comparing the absolute values of the group birefringence grating near the special wavelength, the transmission spectrum of structures with different parameters are simulated. The average sensitivity can reach to 35.14 nm/°C and − 27.71 nm/°C at 27–32°C, and R2 are 0.98455 and 0.9779.

2 Geometry and theory

The cross section of the PCF structure proposed in this paper is shown in Fig. 1a. Six corners of the second cladding layer are removed to form the structure, and the air holes spacing Λ is 3.5 μm. d, d0,d1,d2 represent the diameter of the air holes, the diameter of the air hole d = 2.8 μm. The diameter of the air hole d1 was set larger to improve the birefringence of the PCF. The parameters d0, d1 and d2 were changed in this paper. The background material of the PCF is fused silica, and its dispersion coefficient can be calculated by Sellmeier equation (Ghosh et al. 1994):

$$\begin{aligned} n^{2} (\lambda ,T) = & \left( {1.31552 + 6.90754 \times 10^{ - 6} T} \right) + \frac{{\left( {0.788404 + 23.5835 \times 10^{ - 6} T} \right)\lambda^{2} }}{{\lambda^{2} - \left( {0.0110199 + 0.584758 \times 10^{ - 6} T} \right)}} \\ & + \frac{{\left( {0.91316 + 0.548368 \times 10^{ - 6} T} \right)\lambda^{2} }}{{\lambda^{2} - 100}} \\ \end{aligned}$$
(1)

where the units of wavelength are microns and the units of temperature are degrees Celsius. All the air holes are filled with temperature sensitive liquid, which the refractive index is 1.37 when the temperature is 25 °C, and the sensitivity coefficient is − 0.0004/°C (Liu et al. 2018). The relationship between refractive index and temperature can be expressed as n = 1.37–4 × 10–4(T-25°C). The fabrication technology of PCFs has been very mature and achievable (He et al. 2021), so we believe that the structure assumed in this paper can be fabricated.

Fig. 1
figure 1

a Schematic diagram of the cross-section of the PCF structure, b the effective refractive index and limiting loss dependence on the operational wavelength

The fiber characteristics of the proposed structure are simulated and analyzed by finite element method. Similarly, we assume that it can reach the ideal state, set the scattering boundary conditions and perfect matching layer, and numerically calculate the dependence of refractive index and loss on the operable wavelength λ, as shown in Fig. 1b. The effective refractive index decreases with the wavelength increases, the limiting loss of optical fiber increases with wavelength increases. The lines and curves between the x and y polarization modes almost overlap each other.

The transmission spectrum of Sagnac interferometer can be obtained by the following formula (Han et al. 2013, 2014):

$$T = \frac{{1 - \cos \left( {2\pi B\left( {\lambda ,T} \right)L/\lambda } \right)}}{2}$$
(2)

where 2 π B(λ, T)L/λ is the phase difference between x and y polarization mode. In the formula, B is a function of wavelength and temperature, representing phase birefringence, and its numerical expression is B(λ,T) = nx − ny, nx, ny indicates the refractive index of x and y polarization mode. L is the length of the PCF, λ is the resonant wavelength. When the phase matching condition is satisfied (namely, the following formula holds), λ will be obtained:

$$\frac{{2\pi B\left( {\lambda ,T} \right)L}}{\lambda } = 2m\pi$$
(3)

where m is an integer. Taking the derivation of temperature T from both sides of the above equation, we can get:

$$\frac{{\left[ {L\frac{\partial B(\lambda ,T)}{{\partial T}} + L\frac{\partial B(\lambda ,T)}{{\partial \lambda }}\frac{d\lambda \left( T \right)}{{dT}} + B(\lambda ,T)\frac{dL}{{dT}}} \right]\lambda (T) - B(\lambda ,T)L\frac{d\lambda }{{dT}}}}{{\lambda^{2} (T)}} = 0$$
(4)

Then we can get the sensitivity dλ/dT:

$$S(T) = \frac{d\lambda }{{dT}} = \frac{{\frac{{\partial B\left( {\lambda ,T} \right)}}{\partial T}\lambda (T) + \frac{dL}{{LdT}}B\left( {\lambda ,T} \right)\lambda (T)}}{{B_{g} \left( {\lambda ,T} \right)}}$$
(5)

where dL/L/dT is the temperature expansion coefficient of the filled liquid, which is ignored because it is very small. Group birefringence Bg (λ, T) = B(λ, T) − λdB(λ, T)/dλ. According to the sensitivity formula, the highest sensitivity can be obtained near a specific wavelength when the denominator approaches zero. Therefore, we modify the structural parameters of d0, d1 and d2 that can affect the group birefringence grating to conduct numerical simulation, compare the absolute value of the group birefringence Bg again, and finally optimize the structure to obtain the highest sensitivity.

3 Results and discussion

The schematic diagram of the temperature sensor system is shown in Fig. 2. The sensing system consists of six parts, including a broadband source (BBS), a spectrum analyzer (OSA), a 3db optical coupler (OC), a polarization controller (PC), a temperature chamber and a section of PCF designed by us. A beam of light is generated by BBS, and the light is divided into two beams through a 3db optical coupler. A beam of light transmits clockwise, first through the PC, and then through the PCF. The other beam of light is transmitted counterclockwise, first through PCF, and then through PC. The two beams of light are finally coupled together at the 3db optocoupler. The PCF is stored in a thermostatted chamber and has been tested for temperature sensitivity. The two beams of light produce a phase difference. The resulting interference fringes can be measured with OSA to detect temperature. The part marked with red in the Fig. 2 is the structure designed by us.

Fig. 2
figure 2

Schematic diagram of temperature sensor system

After the parameters were optimized for the designed structure, we obtained a high average sensitivity. The transmission spectrum is shown in Fig. 3a with structural parameters d0 = 0.6 μm, d1 = 3.2 μm, d2 = 3.1 μm. The fiber length of the PCF is 26 cm, and the temperature changes from 25 to 32 °C. Two dip wavelengths A and B appear in the range of 26–32 °C. The dip wavelength B shifts to long wavelength and the dip wavelength A shifts to short wavelength with the temperature increases. When the temperature is 25 °C, the dip wavelengths A and B become one dip wavelength, and when the temperature drops slightly, they are still one dip wavelength. The dip wavelengths A and B dependence on the temperature is shown in Fig. 3b. The dip wavelength B increases and the dip wavelength A decreases as the temperature increases. The obtained curve equations of dip wavelength A and dip wavelength B with temperature are y = − 0.27104x3 + 25.83911x2 − 844.32997x + 11,242.1904, y = 0.20202x3 − 18.75541x2 + 597.26768x − 3995.42857. The average sensitivities are 35.14 nm/°C and − 27.71 nm/°C when the temperatures are varied in the range from 27 to 32 °C, and R2 are 0.98455 and 0.9779.

Fig. 3
figure 3

a The transmission spectrum dependence on the operable wavelength, b the resonance wavelength dependence on the temperature

Figure 4 show the group birefringent grating dependence on the operable wavelength λ under different structure parameters of d0, d1, d2 and different refractive index of the liqulid. Figure 4a shows the change of the group birefringent grating when d1 = 3.2 μm and d2 = 2.8 μm. Within the wavelength range of 1.0–2.4 μm, the group birefringence grating increases slowly at short wavelength and decreases rapidly at long wavelength with d0 increases. The dashed line indicates that the value of the group birefringent grating is zero. Figure 4b shows the change of the group birefringence grating when d0 = 1.2 μm and d2 = 2.8 μm. The value of the zero point group birefringent grating increases before 1.4 μm and decreases rapidly with d0 increases, the three lines have an intersection around 2.1 μm. Figure 4c shows the dependence of the group birefringent grating on the operable wavelength λ when d0 = 1.2 μm and d1 = 3.2 μm and d2 changes from 2.8 to 3.4 μm. The group birefringent grating gradually increases first and then decreases with the diameter d2 increases. Combined with the calculated data, we selected the final structural parameters are d0 = 0.6 μm, d1 = 3.2 μm and d2 = 3.1 μm. Its transmission spectrum was calculated by finite element method, and then its sensitivity was analyzed.

Fig. 4
figure 4

The group birefringent grating dependence on the operable wavelength λ under different structure parameters of d0, d1, d2 and different refractive index of the liqulid

Figure 4d shows the the group birefringent grating dependence on the operable wavelength λ under different refractive index of the liqulid, and the parameters are d0 = 0.6 μm, d1 = 3.2 μm and d2 = 3.1 μm. When RI = 1.37 and 1.39, the group birefringence increases firstly and then decreases with the wavelength increases. When RI = 1.41, the value of group birefringence gradually decreases first and then increases slowly, and is the smallest absolute value among them. So we calculate the sensitivity of the refractive index near the RI of 1.4.

Figure 5 show the transmission spectrum dependence on the wavelength of the parameters within a certain range of the parameters (a) d0 = 0.6 μm, d1 = 3.2 μm, d2 = 2.8 μm. (b) d0 = 1.2 μm, d1 = 3.5 μm, d2 = 2.8 μm. (c) d0 = 1.2 μm, d1 = 3.2 μm, d2 = 3.1 μm. (d) d0 = 1.2 μm, d1 = 3.2 μm, d2 = 2.8 μm, respectively. As the wavelength increases, the transmission spectrum shows a periodic change. The wavelength range shown in the figure is selected to better show the dependence of the transmission spectrum on the wavelength. In Fig. 5, the movement directions of the dip wavelength A and the dip wavelength B are opposite. The dip wavelength A moves to the short wavelength direction, and the dip wavelength B moves to the long wavelength direction. Figure 5a shows that wavelength range shift by the two dip wavelength is minimal, Fig. 5b shows that the wavelength range shift by the dip wavelength A is greater than the wavelength range shifted by the dip wavelength B. In Fig. 5c, d, the wavelength ranges of the two dip wavelength shift similarly, and it can be seen that the shift of the wavelength range of dip wavelength A is greater than that of dip wavelength B.

Fig. 5
figure 5

The transmission spectrum dependence on the wavelength of the parameters a d0 = 0.6 μm, d1 = 3.2 μm, d2 = 2.8 μm, b d0 = 1.2 μm, d1 = 3.5 μm, d2 = 2.8 μm, c d0 = 1.2 μm, d1 = 3.2 μm,d2 = 3.1 μm, d d0 = 1.2 μm, d1 = 3.2 μm, d2 = 2.8 μm, respectively

Figure 6 correspond to the fitting resonance wavelength dependence on the temperature of the parameters (a) d0 = 0.6 μm, d1 = 3.2 μm, d2 = 2.8 μm. (b) d0 = 1.2 μm, d1 = 3.5 μm, d2 = 2.8 μm. (c) d0 = 1.2 μm, d1 = 3.2 μm, d2 = 3.1 μm. (d) d0 = 1.2 μm, d1 = 3.2 μm, d2 = 2.8 μm, respectively. The slope of the curves represent the average sensitivity of 27–32 °C. The sensitivities of the dip wavelength A and the dip wavelength B are − 16.86 nm/°C, 21.14 nm/°C, − 34.43 nm/°C, 17.57 nm/°C, − 27.57 nm/°C, 35.14 nm/°C, − 29.49 nm/°C and 19.66 nm/°C, respectively.

Fig. 6
figure 6

The resonance wavelength dependence on the operational wavelength under different parameters a d0 = 0.6 μm, d1 = 3.2 μm, d2 = 2.8 μm, b d0 = 1.2 μm,d1 = 3.5 μm, d2 = 2.8 μm, c d0 = 1.2 μm, d1 = 3.2 μm, d2 = 3.1 μm, d d0 = 1.2 μm, d1 = 3.2 μm, d2 = 2.8 μm, respectively

Figure 7a shows the transmission spectrum dependence on the operable wavelength when the refractive index is 1.404–1.409, and the structural parameters are d0 = 0.6 μm, d1 = 3.2 μm and d2 = 3.1 μm. When the refractive index increases, the dip wavelength A and the dip wavelength B moves to the short wavelength direction. Figure 7b shows the resonance wavelength dependence on the effective refractive index. The average sensitivities are − 53,714 nm/RIU and − 47,714.29 nm/RIU, and R2 are 0.99732 and 0.99896.

Fig. 7
figure 7

a The transmission spectrum dependence on the operable wavelength, b the resonance wavelength dependence on the effective refractive index

As shown in Table 1, in the literature we investigated, the sensitivity of the interferometric sensor was higher than that of the surface plasmon resonance sensor, and the sensitivity obtained over a wide measurement range was much lower than that of ours. The sensitivity of the sagnac interferometric sensor was slightly higher than that of other interferometric sensors. Compared with other sensors, it is our advantage to obtain high sensitivity in a small range. Our structure is simple and easy to realize, with high sensitivity and precision. And it is expect to be reused in the field of temperature and refractive index measurement.

Table 1 Performance comparison of the PCF temperature sensor

4 Conclusion

In this paper, a high-sensitivity PCF temperature sensor based on sagnac interferometer full liquid filling is presented. All the air holes of the PCF are filled with temperature-sensitive liquid, and the designed fiber structure is simple and easy to realize. We optimized the parameters d0, d1 and d2 that can affect the group birefringent grating of the structure of the PCF. The optimal structure was selected by comparing the absolute value of the group birefringent grating at a range of wavelength. We plotted the transmission spectra of other structures with adjusted parameters and calculated the sensitivity. In the structure parameters are d0 = 0.6 μm, d1 = 3.2 μm and d2 = 3.1 μm. The average sensitivity of 35.14 nm/°C and − 27.71 nm/°C are obtained at 27–32 °C, and R2 are 0.98455 and 0.9779. The sensitivity of the refractive index of the liquid are − 53,714 nm/RIU and − 47,714 nm/RIU at RI ranging from 1.404 to 1.409.