Introduction

Optical fiber-based sensing technology includes performed escalating attention due to its many advantages over traditional sensing technologies. Close size, comfortable fabrication, flexibility, and more steady comeback are the main benefits of optical fiber sensors. Moreover, they are resistant to electromagnetic interference and can efficiently be established for structural health monitoring in dangerous atmospheres and remote regions. The optical fiber sensors can furthermore be integrated with the laboratory on chip-based instruments and difficult sensing networks [1]. (PCFs) are a distinct kind of optical fiber featured via periodic micro-capillary structures. PCF is an optical produced excellent characteristic over standard optical threads in addition a good geometry over traditional optical fiber. It contains important features, for instance, smallish size, unrestricted from electrical impedance, geometric adaptability, enhanced affectability, and consecrated parallel concerning fiber optic media communications making it great for opto-gadgets [2]. In modern years, PCFs have obtained an excellent deal of research concentration in sensing performances [3]. Corresponded with the optical fiber, PCF includes a diffusion of air gaps in the cladding area, stretching infinitely along the fiber axis, and it includes an elastic design and several wonderful possessions, comprising endless single mode, heightened nonlinearity, elevated birefringence, enormous mode field size, mitigation of plugging material, lower information losing, manageable diffusion, and so on [4,5,6]. Photonic crystal fibers (PCFs) [7, 8], furthermore named holey fibers or microstructured optical fibers, are formed of a periodical array of air holes driving along their whole length and containing light in the imperfections of the periodic form, contain unique possessions corresponding to traditional optical fibers like unusual chromatic dispersion, high birefringence, etc. In addition, the optical possessions of silica-air PCFs are determined by the place, dimension, and form of the air holes, and can be stretched by plugging the holes with materials, for example, liquid crystals [9], semiconductors [10], or metals [11, 12], therefore have several benefits for sensing uses.

Surface plasmon resonance is an optical phenomenon described as the collaborative oscillation of unrestrained electrons on the edge between the dielectric and metal stimulated by an electromagnetic wave and can be excited by the electron or photon [13]. When the wave vector of the surface plasmon equals the wave vector of the incident field, there is an abrupt dip in reflected intensity and this phenomenon is named (SPR) [14, 17]. (PCF) sensor based on (SPR) has been widely applied in the areas of component content sensing [18], environmental monitoring [19], and medical treatment [20] since it has excellent advantages of simple structure, small volume, high sensitivity, real-time detection, rapid response, and anti-interference [21]. The discovery of relative humidity (RH) utilizing optical fiber, such as a sensing platform, comprising evanescent wave sensors [22, 23], and Fabry–Perot (FP) interferometers [24, 25], has been reported. The expansion of optical fiber for humidity sensing offers many benefits: impunity to electromagnetic interference and secure process in the flammable or explosive environment, in addition to miniature size, the feasibility of multiplexing the data from different sensors in the same optical fiber, and the potential of remote sensing and continued monitoring in restricted or dangerous environments [25]. This work included the manufacture and implementation of photonic crystal fiber (ESM-12) covered with a light layer of Au (40 nm) as the sensing segment based on surface plasmon resonance for sensing and measuring the relative humidity (RH) of the environment.

Fabry–Perot interferometer

FPI usually consists of two similar reflecting surfaces split by a specific space [25]. Occasionally it is named an etalon [26]. When the numerous superposition of the reflected and the transmitted rays at two similar surfaces Interference occurs [27]. The FPI can be easily designed by deliberately making up reflectors inside or outside of fibers. FPI sensors can be generally categorized into two types: extrinsic and intrinsic as in Fig. 1. [28, 29]. The intrinsic FPI fiber sensors require reflecting elements inside the fiber itself. The regional hollow of the intrinsic FPI can be designed by many of techniques, for example, thin film deposition as in Fig. 2 [30, 31], chemical etching [32, 33], and fiber Bragg gratings (FBGs) [34, 35].

Fig. 1
figure 1

a The diagram of an extrinsic FPI; b the diagram of an intrinsic Fabry–Perot interferometer; c the diagram of an intrinsic FPI employed in reflection mode. Ri denotes the reflective surfaces, and L is the length of the hollow [38]

Fig. 2
figure 2

The diagram of the MMF–PCF based on the SPR sensor

The performance parameter of photonic crystal fiber sensor

Quality factors to be calculated include sensitivity, resolution, figure of merit, and signal-to-noise ratio. Sensitivity is definite such as the variation in resonance wavelength per unit change in relative humidity of the sensing medium, and it can be written as [13]:

$$S = \frac{{\Delta \lambda_{{{\text{res}}}} }}{{\Delta {\text{RH}}}}$$
(1)

The resolution is definite as the minimum of variation in relative humidity that is measurable through the sensor, and then is given such as [13]:

$$R = \frac{{\Delta {\text{RH}}}}{{\Delta \lambda_{{{\text{res}}}} }} \cdot \Delta \lambda_{{{\text{DR}}}}$$
(2)

(\(\Delta \lambda_{{{\text{DR}}}}\)) is the spectral resolution of the spectrometer.

(SNR) and (FOM) are inversely proportional to the width of SPR spectral curve and can be written as [13]

$${\text{SNR}} \left( n \right) = \left[ {\frac{{\Delta \lambda_{{{\text{res}}}} }}{{\Delta \lambda_{0.5} }}} \right]$$
(3)

where \({\Delta }\lambda_{0.5}\) is the width of the spectral curve

$${\text{FOM}} = \frac{S}{{\Delta \lambda_{0.5} }}$$
(4)

Experimental work

The outline demonstrates the segments of the SPR-based photonic crystal fiber Fabry–Perot interferometer sensor design indicated in Fig. 3a. In the case of MMF–PCF, it is mainly divided into four components: a light beam produced by a laser diode with a wavelength of 632 nm with power 0.05mW, PCF (ESM-12) (Thorlabs Co.), Multi_Mode Fiber, coupler, a computer-connected spectrophotometer (HR4000CG UV-NIR), and finally a humidity chamber with a humidity sensor (wireless sensor) from Mebus putting inside chamber. Humidity was generated through a simple electrical device placed inside a chamber containing a humidity sensor for measuring humidity. Figure 3b shows an image of the experimental setup.

Fig. 3
figure 3

a The outline of the practical design of SPR based on photonic crystal fiber Fabry–Perot interferometer sensor. b Photograph of experimental setup of SPR based on photonic crystal fiber FPI sensor

The results and discussion

By immersing the coated end surface of PCF in various sucrose solutions and calculating the solutions’ refractive indices, the performance of the sensor is calculated. The calibration curve for PCF and also the line connection between RI and solution concentration are shown in Fig. 4.

Fig. 4
figure 4

PCF–SPR calibration curve using sucrose/water solution

Using a 5-cm-long photonic crystal fiber sensor and a PCF diameter (D) of 125 µm, a coated metal layer thickness of 40 nm, the sensing process was finished. Figure 5 illustrates how the resonance wavelength suddenly increase and shift in the direction of longer wavelengths (redshift) after the humidity of the environment inside the chamber increases. The spectrum is created by the use of an optical cable to capture light curves. The optical signal intensity (Io) obtained without any effect of humidity (sensing area) is divided by the intensity (I) measured with a humidity effect to determine the transmission (sensing medium). One option is to utilize the transmission as a function of wavelength (nm). The surface plasmon resonance curvature is referred to as the resonance wavelength. The wavelength shift and relative humidity sensor all follow a constant curve relationship. Figure 6 illustrates plasmon resonance curves at various t relative humidities (sensing medium). Table 1 illustrates the performance characteristics values for the sensor using the Au coating, where sensitivity, resolution, figure of merit, and signal-to-noise ratio were computed. Table 2 explains the values of resonance wavelength and values of relative humidity (RH%).

Fig. 5
figure 5

SPR curve of the PCF with Au metal for different relative humidities (RH%)

Fig. 6
figure 6

Resonance wavelength \(\lambda_{{{\text{res}}}}\) as a function of relative humidity (RH%) for a gold-coated layer

Table 1 Performance parameters of gold layer
Table 2 Relative humidity (RH%) values for various resonance wavelengths \(\lambda_{{{\text{res}}}}\) (nm)

Conclusion

This research presents a reflection-type sensor (PCF) based on SPR technology to be exploited for sensing relative humidity. From the results, we conclude that the value of the resonant wavelength differs with the value of relative humidity (RH%). The resonance wavelength rises due to a growth in (RH). The results show that photonic optical fiber based on SPR sensing with a 40 nm thickness gold metal layer and 4 cm of exposed sensing region achieves effective performance parameters for PCF such as sensitivity reaching 1.25 nm/RH%, SNR 0.0066, FOM 0.00083, and R is 0.08.