Introduction

Optical fiber technology is widely used in various fields today, including telecommunications, medicine, and scientific research, and over the past few decades, significant technological advancements have enabled new applications to be developed [1]. The ability to efficiently restrict and guide high intensity optical modes at certain frequencies inside an air-guided. optical fiber has made photonic crystal fibers the subject of considerable research and commercial applications. As a result of this principle, it is possible to create "endless single mode optical fibers," low loss guiding optical fibers, and optical fibers with large core areas, among other versatile designs [2]. PCFs are comparable to regular optical fibers in that they comprise of a core encircled by cladding, permitting light to pass right through the core. An important distinction between PCFs and ordinary optical fibers is that PCFs possess air-silica cross sections, whereas standard optical fibers possess glass cross sections [3]. Based on their light-guiding mechanisms, PCFs are categorized as Solid Core Photonic Crystal Fibers with Modified Total Internal Reflection, and Hollow Core Photonic. Crystal Fibers with Photonic Band. Gap [4].

In SPR, surface plasmon polaritons (SPPs) oscillate at any metal–dielectric interface when they receive maximum energy from an external source. The electrical shock is caused by polarized light at the metallic-dielectric junction in the plasma optical excitation effect [5]. The ability of surface plasmons to sense variations in the refractive index of encircling medium has made SPR a promising sensor technology in chemistry, biomedicine, and environmental monitoring [6,7,8,9].

SPR sensing with PCFs with a range of air holes along the propagation path is appealing due to their structural elasticity [10,11,12]. SPR sensors based on PCFs (PCF-SPRs) are based on phase matching among the core-guided and surface plasmon polaritons (SPPs) modes.

A PCF with index-guiding properties, also called a holey fiber or a microstructure fiber, exhibits an attractive property of controlling chromatic dispersion by varying the diameter and spacing between the holes [13, 14]. Higher-order mode cutoffs at short wavelengths and macro bending losses at long frequencies typically restrict the bandwidth of typical Single-mode fibers’ (SMF). To fully utilize PCFs, conventional single-mode fibers' light must be effectively coupled to them. Despite this, conventional fibers' microhole structures make it difficult to splice various PCFs together. Microhole collapse, a brand-new problem that is crucial to our comprehension of splice loss. To discover new splice methods between these diverse types of fibers, an organized examination needs to be shown, which has not been done so far [15].

Due to their compact size, high sensitivity, electrical passiveness, immunity to electromagnetic interference, wide bandwidth, and convenience for tip-based sensing, optical fiber sensors are widely used in science, environmental monitoring, and communication technology. In most cases, these optical sensors measure the variations in optical properties resulting from changes in the refractive index (RI) of a gas or liquid [16]. It is very important to measure the RI of fluids in order to illustrate the optical properties of fluids, leading to the development of RI sensors for applications in many fields, including the measurement of water salinity, and biotechnology processes provide valuable information on how drugs interact with DNA and how cells grow [17]. Among the difficulties that sensors may face are their cost, the amount of the sample to be sensitive, the sensor's size, and its performance properties, such as its signal-to-noise ratio, sensitivity, and resolution. A sensor's sensitivity can be enhanced by using plasmonic materials, such as gold and silver. When it is exposed to air, silver loses its chemical stability. On the other hand, gold is a preferred plasmonic material because to its chemical stability and strong resonance peak [18]. Using PCF-SPR, an evanescent field can be used as a sensing mechanism. Evanescent fields are created when light of a specific wavelength passes through the cladding and hits the fiber core of the PCF. The surface plasmon wave is created when evanescent fields interact with free electrons in a plasmonic metal layer such as silver, gold, copper, and aluminum [19]. To monitor variations in the refractive index (RI) of carbonated liquids, a photonic crystal fiber tapered sensor based on SPR with a gold layer coating in the center was created.

Tapering diameter of photonic crystal fiber

Tapering of optical fibers by etching is a technique used to reduce the diameter of a section of an optical fiber gradually. This process involves controlled chemical or plasma etching to remove material from the fiber's cladding or core, resulting in a tapered region with a smaller cross-sectional area. After tapering, the tapered fiber was placed on a glass slide and subjected to an optical microscope to measure the SMF-PCF-SMF diameter. The tapering process was done by using Hydrofluoric acid, and Fig. 1 shows the effect of this acid on the fiber which leads to a decrease in the fiber diameter from 125 to 92.1 µm.

Fig. 1
figure 1

Shows the images of Photonic crystal fiber before and after it is tapered to 91 µm in diameter

Design and construction of the Mach–Zehnder interferometer sensor

This arrangement requires the splicing of photonic crystal fiber and another type of fiber which will be single mode fiber. Splicing a Photonic Crystal Fiber (PCF) with a single-mode fiber (SMF) requires careful alignment and fusion techniques to ensure efficient light coupling between the two fibers. The splicing process was done via a fusion splicer (Shinho s16) with the SMF spliced on both sides of PCF and the sensing region of PCF was 4cm long. In this work, a (ESM-12) PCF was selected due to its high sensitivity to environmental changes, including temperature, strain, pressure and refractive index. The PCF’s large evanescent field and long interaction length with the external environment enhance the sensitivity of the sensing mechanism with single mode fiber alongside the PCF which is easy to install and maintain as seen in Fig. 2.

Fig. 2
figure 2

Splicing of PCF and SMF by means of fusion splicer

Performance parameter

There are a number of parameters that can be used to estimate the performance of PCF-SPR sensors, including sensitivity, resolution, signal-to-noise ratio, and figure of merit:

The sensitivity of a sensor refers to how much its output changes in response to a given change in the input parameter being measured. In the context of an optical sensor based on a resonance wavelength, the sensitivity is a measure of how much the resonance wavelength shifts for a small change in the parameter being sensed (e.g., temperature, strain, refractive index, etc.).

The sensitivity formula for the resonance wavelength of an optical sensor can be expressed as follows [16]:

$$S_{{\uplambda }} \left[ {\frac{{{\text{nm}}}}{{{\text{RIU}}}}} \right] = \frac{{\Delta \lambda_{{{\text{peak}}}} }}{{\Delta n_{{\text{a}}} }}$$
(1)

where ∆λpeak and Δna are the difference in the wavelength resonance peak and difference in the RI of the two neighboring analytes, correspondingly.

The equation below may be used to compute the resolution (R) of a sensor, which shows how much minor fluctuation in analyte RI can be seen. [17]:

$$R\left[ {{\text{RIU}}} \right] = \Delta n_{{\text{a}}} \times \frac{{\Delta \lambda_{{{\text{min}}}} }}{{\Delta \lambda_{{{\text{peak}}}} }}$$
(2)

where ∆λpeak is the resonance wavelength difference between the two adjacent analytes resonance peaks and na is the refractive index change between the two adjoining analytes.

The equation for the Signal-to-Noise Ratio (SNR), which gages sensor performance, is [20]:

$${\text{SNR}} = \frac{{\Delta \lambda_{{{\text{peak}}}} }}{{{\text{FWHM}}}}$$
(3)

where FWHM is the Full Width at Half Maximum.

The figure of merit (FOM) for optical fibers can be calculated using various formulas, depending on the specific application and the desired characteristics. FOM is expressed as [18]:

$${\text{FOM}}\left[ {{\text{RIU}}^{ - 1} } \right] = \frac{{{\text{Sensitivity}} \left( {\frac{{{\text{nm}}}}{{{\text{RIU}}}}} \right)}}{{{\text{FWHM}}\,\left( {{\text{nm}}} \right)}}$$
(4)

Experimental procedures

In this experiment, a well-established procedure was followed according to previous work. The optical system for measuring the transferred light spectrum subsists of a laser diode light source (653 nm), SMF, PCF (Thorlabs Co.), Coupler, spectrophotometer (HR4000CG UV-NIR), and drops of Carbonated liquids. The laser diode was connected to a coupler which in turn is connected to the SMF-PCF-SMF. The spectrophotometer is coupled to a computer from one end and to the other end of the SMF-PCF-SMF. Thorlabs' advanced software saves the SPR curves together with the data values and displays them online on the computer screen. A photograph of the established sensor set up is displayed in Fig. 3.

Fig. 3
figure 3

The experimental setup of SMF-PCF-SMF-based on SPR by using laser diode

Results and discussion

The presentation of the sensor was evaluated by measuring the refractive indices of combinations of sucrose mixtures at numerous concentrations with an Abbe refractometer. A calibration curve for PCF between the solutions refractive indices and their concentrations is determined in Fig. 4.

Fig. 4
figure 4

SMF-PCF-SMF calibration curve using sucrose solutions

When the refractive index of the surrounding medium increases, the resonance wavelength shifts to a longer wavelength. This shift is known as a "redshift” as seen in Fig. 5. This sensitivity of the resonance wavelength to changes in the refractive index of the carbonated liquids with different expiration dates forms the basis for SPR-based sensing applications which is displayed in Fig. 6. By monitoring the wavelength shift, it is possible to detect and quantify changes in the refractive index of the surrounding medium. This makes SPR-based sensors valuable tools for label-free and real-time detection of chemical and biological interactions. SPR response curves' dip locations and widths are affected by each sensor's refractive index, and gradient positions become more varied as refractive index declines. Refractive index changes are dependent on the spectral curve's breadth. When the resonance wavelength and refractive index of the sensor are modified, the width, dip location, and shifting value of the surface plasmon resonance curve change. Blank's law, which states that energy is inversely proportional to wavelength, states that an increase in toxic metal ions causes an increase in resonance wavelength, resulting in an increase in refractive index RI [21].

Fig. 5
figure 5

An analysis of the resonance wavelength for gold coated sensors in relation to refractive index

Fig. 6
figure 6

Shows SPR curve for samples of carbonated liquids with different expiration dates

As shown in Table 1, the gold sensor has a set of performance parameters corresponding to its performance. Based on the previous equations that were mentioned above, the figure of merit, resolution, sensitivity, and signal-to-noise ratio were calculated. With different expiration dates, carbonated liquids with varying sensor parameters are shown in Table 2.

Table 1 Empirical operation of the instrument
Table 2 Shows the performance of 4 different samples of carbonated liquids according to the sensor parameters

Conclusion

This work shows the results for sensing of carbonated liquids with different expiration dates when associated with photonic crystal fiber sensor based on surface plasmon resonance. As experimentally tested, the sensor shows the variations of the values of resonant wavelength with refractive indices and concentrations of different carbonated liquid samples. The 40 nm thickness of gold shows effective performance parameters as the sensitivity reaches 7.17 (µm/RIU), figure of merit is 19.14, signal-to-noise ratio 0.536, and finally resolution at 1.3 × 10–4 (RIU) which means that the Optimization of the gold layer thickness, surface functionalization, and experimental conditions can further enhance the SPR performance parameters for specific applications, such as biosensing, environmental monitoring, and chemical analysis.