1 Introduction

In, the past few decades, the creation of sensors exhibiting high sensitivity, selectivity, speed, and reliability to detect chemical or biological species has been an area of intense research interest. Glucose, a vital component of carbohydrates and a key source of energy for human metabolism is a particularly important analyte. Detecting glucose is vital not just for diabetes diagnosis, but also in industries such as food and pharmaceuticals [1,2,3,4,5].Electrochemical, chromatographic, and fluorescent techniques have been employed for both intermittent and continuous glucose detection [6]. Among these, electrochemical sensor is a type of sensor that outputs the changes produced by the target substance in the form of an electrical signal. Compared with other detection methods, electrochemical analysis does not require large analytical instruments, has fast reaction speed, high sensitivity and selectivity, and can be used for real-time monitoring of target analytes. Because of these advantages, electrochemical analysis is widely used in environmental detection, food industry, and biomedical fields [7]. In practical electrical analysis and detection, the standard three-electrode system is usually used [8].Electrochemical glucose sensors can be divided into three types: potentiometric, amperometric, or conductometric sensors.

The electrochemical detection can be categorized as enzymatic or non-enzymatic. Previous studies have predominantly utilized GOx and other enzymes for glucose biosensors [9, 10]. However, the instability of enzymatic glucose sensors due to the intrinsic properties of enzymes poses a serious challenge. Enzyme activity can be significantly impacted by factors such as temperature, pH, oxygen, humidity, and exposure to toxic chemicals, thereby limiting their applicability [11]. In contrast, non-enzymatic glucose sensors have gained research interest due to their advantages of low cost, high stability, fast response, and low detection limit [12, 13].Metals like Pt [14], Ag [15], Au [16], and 3D transition metals like Co [17], Fe [18], and Cu [19], are commonly utilized as electrodes to improve electrocatalytic activity. Nevertheless, the high cost of noble metals and the restricted usefulness caused by surface contamination by intermediates pose significant drawbacks. Polyaniline (PAni) was utilized as a cost-effective matrix to disperse metal particles in glucose sensing electrodes, due to its low density and higher surface area reaction [20, 21].Composite materials composed of π-conjugated polymers (CPs) and metal particles (MPs) are of great interest to researchers [22, 23]. The properties of these materials are unique and can be combined to enhance physical and chemical properties that would enable them to be a potential candidate for many applications in the areas of nanoscience and nanotechnology. Recent studies have focused on developing new composites of conducting polymers and metal particles to generate materials with novel properties and potential applications. The goal of this study is to create a novel electrochemical non-enzymatic sensor that is based on a conjugated π polymer (polyaniline) and functionalized with the addition of nickel particles. The proposed sensor exhibits strong catalytic performance in the context of the oxidation of glucose.

2 Experimental methods

2.1 Chemicals

Chemicals like; aniline (C6H5NH2), sulfuric acid (H2SO4), nickel sulfate (NiSO4), sodium sulfate (Na2SO4), glucose (C6H12O6, H2O), and sodium hydroxide (NaOH), were purchased from Sigma-Aldrich and were used without further purification. Lithium perchlorate (LiClO4) was purchased from Fluka. Distilled water was used to prepare all aqueous solutions.

2.2 Synthesis methodology

Potentiostat/Galvanostat Voltalab PGZ 301 was used at room temperature for electrochemical tests performed in a standard 3-electrode system without agitation. A saturated calomel electrode was used as a reference electrode while platinum wire serves as a counter electrode. The ITO, PAni/ITO, and Ni-PAni/ITO were used as working electrodes. The ITO substrates (1 × 1 cm2)pre-cleaned through sonication in acetone, ethanol, and water for 15 min each was used to prepare modified electrodes. Afterward, the purified working electrode was submerged in a solution containing aniline (0.1M) dissolved in sulfuric acid (0.5M), with a supporting salt of lithium perchlorate (LiClO4). The PAni coatings were washed with distilled water and dried in an ambient atmosphere. To create Ni-PAni/ITO thin films, the electrodeposition of nickel onto the PAni/ITO samples was conducted bya galvanostatic process using a solution containing NiSO4(0.1M) and Na2SO4(0.1M).The SEM micrographs were used to study the microstructure and surface morphology of the Ni-PAni composites. The electrochemical properties of the samples were investigated through Cyclic Voltammetry and electrocatalytic activity for glucose oxidation was investigated in NaOH (0.1M) electrolytic solution. The thickness of the films was measured by a mechanical profilometer of the KLA Tecnor Alpha-Step D-500 type.

3 Results and discussion

3.1 Electro-polymerization of aniline

The cyclic voltammetry method was used to investigate the electrodeposition of PAni thin films onto the ITO substrate. These PAni thin films with a thickness of 100 nm were used as a matrix to prepare composite thin films. The cyclic voltammetry was performed at a scan rate of 10 mV/s with a potential ranging from − 0.2 and 0.9V. Figure 1a and b illustrate the outcomes of the very first cycle and the five succeeding cycles, respectively. During the positive scan, a current density increase was detected at 0.85 V, which is believed to be caused by monomer oxidation [24]. The following reverse scan indicated a current loop, indicating the nucleation and growth of the PAni film. The crossover between the cathodic and anodic branches indicated the presence of a new phase. With an increase in the number of cycles, the deposition rate of polyaniline onto the working electrode was observed to increase, as evident from the new oxidation and reduction peaks appearing in Fig. 1b. The peak appearing at less positive potentials (I) is attributed to the oxidation of leucoemeraldine (a fully reduced form of PAni) to emeraldine (a half-reduced form of PAni. On the other hand, the intermediate peak (peak (II)) appearing around 0.45V is usually assigned to degradation products (p-benzoquinone) and later to its oxidation. The peak (III) is related to the oxidation of emeraldine to pernigraniline (a fully oxidized form of PAni) [25]. Following the electro-polymerization process, the ITO substrate was entirely coated with a transparent green film.

Fig. 1
figure 1

Cyclic voltammogram of electropolymerization of aniline on ITO electrode (a) first cycle and b 5 continuous cycles. Scan rate 10 mV/s

3.2 Incorporation and characterization of nickel particles on polyaniline thin films

3.2.1 Electrodeposition of Ni particles on PAni electrode

The chrono-potentiometric curve for galvanostatic electrodeposition of nickel within the polyaniline matrix is shown in Fig. 2. The electrodeposition time was fixed at 60 s while the intensity of the applied current was set at − 0.1 mA. The chrono-potentiometric curve obtained from the electrodeposition of nickel in the polyaniline matrix by the galvanostatic method can be divided into three steps. In step I, the potential of the electrode increases rapidly due to the charge of the double layer. Step II is characterized by the maximum potential value, which corresponds to the reduction potential of the metal ions (Ni2+) and marks the beginning of the nucleation of nickel on the working electrode. Finally, in step III, the potential decreases and reaches a stable plateau due to a pseudo-stationary regime, where the electrodeposition of nickel continues on the polymer surface.

Fig. 2
figure 2

Electrodeposition of nickel on polyaniline by the galvanostatic method. Applied current intensity = − 0.1 mA, t = 60 s

3.2.2 Impedance spectroscopy

The impedance measurements were carried out on polyaniline films synthesized by the potentiostatic method in the frequency range from 100 kHz to 100 MHz before and after the incorporation of nickel particles in LiClO4/H2SO4 solution. Figure 3a and b display the Nyquist plots for polyaniline thin films. The high-frequency semicircles indicated the charge-transfer-driven process followed by a low-frequency straight line specific to a diffusion process. The charge transfer resistance decreases from 172.2 to 134.4 Ω cm2 after the incorporation of nickel particles into the polymer. These results are consistent with previous studies and indicated the incorporation of nickel particles into the polymer that ultimately enhances the electrochemical behavior of composites.

Fig. 3
figure 3

Nyquist diagrams obtained in a solution (0.1 M of LiClO4/0.5 M of H2SO4): a PAni/ITO, b Ni-PAni/ITO

3.2.3 Electrical characterization by the four-point method

The electrical properties of the polyaniline and Ni-PAni composite films, such as electrical resistivity and conductivity, were analyzed using a four-point measuring device at room temperature. The measurement involved supplying a constant current source to the sample and measuring the resulting potential difference. The conductivity of the Ni-PAni composite was found to be significantly higher than that of polyaniline alone. These results were consistent with impedance spectroscopy studies, which showed a decrease in the diameter of the circular arc. Therefore, it can be concluded that nickel improves the conductivity of the polymer, as summarized in Table 1.

Table 1 Results of the measurement of the conductivity of PAni and Ni-PAni

3.3 UV–visible spectroscopy

UV–Vis spectroscopy was used to study the interaction between the PAni and Ni nanoparticles deposited on the ITO substrate (Fig. 4a). As can be seen in Fig. 4a, three particular peaks of polyaniline at 362, 434, 953 nm are attributed to ππ*, polaron-π*, and π- polaron transitions, respectively. This illustrates that the electrodeposited PAni films were in emeraldine salt form [26]. Therefore, in comparison to the peaks of the PAni films, we observed a significant change in all absorption peaks, which are shown in Fig. 4b for Ni-PAni, and are as follows: 338, 434, 654, the peak shifts observed confirmed the interaction of Ni with the amine sites of the polyaniline, which is consistent with the results reported by Mrinmoy Goswami et al. [27].

Fig. 4
figure 4

UV–visible spectra of the films of a PAni and b Ni-PAni/ITO

3.4 Microstructure morphology and structural analysis

An SEM image was obtained for the samples before and after nickel deposition for 60 s, as shown in Fig. 5. The image reveals two distinct morphologies: the fibrous morphology of the polyaniline and the spherical morphology of the nickel particles, which are dispersed on the surface of the polyaniline. This observation is consistent with results reported by O. Belgherbi et al. [28].The actual size, which consist of diameter and area of Ni particles were calculated using imageJ software. In addition, the percentage of all appeared particles on the surface of polyaniline thin films was estimated. The obtained results are listed in Table 2. It is found that the average diameter and average surface of Ni particles are 0.91 µm and 0.77 µm2, respectively.

Fig. 5
figure 5

SEM images obtained after nickel deposition on PAni for 60 s at − 0.1mA in a 0.1 M NiSO4 solution

Table 2 Results of the average diameter and average area of Ni particles deposited onto polyaniline thin films

To verify the existence and quality of the nickel deposition, X-ray diffraction (XRD) analysis was performed on a nickel-modified polyaniline thin film. The XRD pattern revealing well-defined diffraction peaks is presented in Fig. 6. The diffraction peaks appeared at 2θ of 45.66° and 50.92° corresponding to the (111) and (200) planes, respectively of the face-centered cubic phase of nickel in accordance with the JCPDS # 00-004-0850.Furthermore, the diffraction peaks at values of 30.34°, 35.33°, and 60.47°correspond to the crystal structure of the ITO substrate (JCPDS file no. 98-005-0849). Additionally, there is a peak located at (): 21.48°, which corresponds to the crystal structure of polyaniline.

Fig. 6
figure 6

X-ray diffraction diagrams of Ni-PAni composite film deposited on ITO substrate

The average size of the crystallites has been estimated to be 35.07 nm using Scherrer's formula (Eq. 1) for the cubic plane with centered faces (200).

$$\mathrm{D}=\frac{0.9\uplambda }{\mathrm{Bcos\theta }}$$
(1)

The variables 'D,' 'B,' 'λ,' and 'θ' represent the crystallite size, full width at half maximum, the wavelength of X-rays, and Bragg's diffraction angle, respectively.

3.5 The modified electrode's electrochemical performance concerning the oxidation of glucose

3.5.1 Electrochemical glucose sensing

Numerous methods have been devised for detecting glucose, such as conductometry, colorimetry, electrochemistry, fluorescent spectroscopy, and optical rotation [29]. Electrochemical techniques are particularly popular due to their simplicity, selectivity, and portability. According to previous studies, biosensors based on electrochemical techniques offer several benefits, including low detection limits, rapid response times, high stability, and affordability [30].Currently, electrochemical sensing is commonly used to monitor glucose levels, particularly in amperometric mode, due to its affordability, high stability, rapid response time, and low detection limit.To measure glucose levels, a tiny blood droplet is positioned onto a disposable electrochemical test strip containing the reference, working, and auxiliary counter electrodes. The working electrode is given a fixed potential, and enzymes that have been immobilized on the electrode respond with glucose in the blood to create a current flow and electrons. The resulting electric charge or current moving through the electrode is relative to the glucose concentration and can be measured accurately.

3.6 Electrochemical activity of Ni-PAni/ITO

3.6.1 Cyclic voltammetry behavior

Cyclic voltammetry was utilized to study the polarization characteristics of PAni thin films modified with nickel in a NaOH (0.1 M) solution, with a scan rate of 15 mVs−1 (Fig. 7). The initial positive scan revealed a comparable trend to pure Ni [31]. We noticed that the peak currents for oxidation displayed an increase with the rise in cycle numbers, excluding the first cycle, implying an increase in activation sites. Moreover, the oxidation peak potentials shifted toward a negative direction, potential displacement of the anode and cathode peaks toward lower values which approves the electro-catalytic effect of the OH species on the electrochemical behavior of the electrode. As has already been indicated in the literature [32], species such as (NiOOH) are the entities involved in the electro-catalytic process and that the oxygen discharge rate is significantly influenced by the alkalinity of the medium.

Fig. 7
figure 7

Cyclic voltammograms of Ni-PAni/ITO in a 0.1M NaOH solution, Vb = 15 mVs−1 during 10 cycles

The expansion of nickel electrodes is a known consequence of the formation of the NiOOH phase. This phase has a lower interelectrode spacing, resulting in reduced internal resistance. Consequently, it is commonly regarded as a superior electroactive material that offers high electrochemical performance.

Figure 8a shows a series of cyclic voltammetry scans performed on an electrode modified with Ni-PAni in NaOH (0.1 M) as a supporting electrolyte at scanning speed in the range from 5 to 700 mV s−1. The current density was observed to increase with increasing scanning speed. Figure 8b illustrates the relationship between the oxidation peak and the square root of the scanning speed. The intensity of the oxidation and reduction peaks showed a linear correlation with the square root of the scanning speed, indicating that the reactions occurring on the modified electrode were reversible. This indicates that mass transfer in the double-layer region of the electrodes is primarily a diffusion-controlled electrochemical process, which is ideal for glucose detection. These observations are consistent with the previous studies [33].

Fig. 8
figure 8

Cyclic voltammetry curves plotted on the Ni-PAni/ITO electrode at different scan rate in a 0.1M NaOH solution (a), Variation in the intensity of the oxidation peak and reduction as a function of the square root v (b)

3.7 Electrocatalytic oxidation of glucose at the Ni-PAni/ITO electrode

The electrocatalytic performance of the Ni-PAni/ITO electrode was assessed by obtaining cyclic voltammograms in the presence and absence of glucose (Fig. 9).In the absence of glucose (curve a), the Ni-PAni/ITO electrode exhibited a couple of well-defined redox peaks. However, upon the addition of glucose (1mM) to the NaOH (0.1M) solution, a significant increase in the anodic peak current was observed (curve b). On the other hand, the cathodic peak current decreased, which suggests that Ni-PAni/ITO can catalyze glucose oxidation, the potential displacement in the presence of glucose indicating that the material was sensitive to the analyte added to the system by the generation of the more active sites competing for the OH available with the composite surface, which could be essential to improve the catalyst. These findings demonstrate the electrocatalytic potential of the Ni-PAni/ITO electrode for glucose detection. Previous research has also suggested that the oxidation of glucose to gluconolactone is catalyzed by the Ni(III)/(II) redox couple, as described in the literature [34].

Fig. 9
figure 9

Cyclic voltammetry curve recorded on the Ni-PAni/ITO electrode in a 0.1 M NaOH solution in the absence (a) and in the presence (b) of glucose

$$\mathrm{Ni}+2{\mathrm{OH}}^{-}\to \mathrm{NiO}+{\mathrm{H}}_{2}\mathrm{O}+2{\mathrm{e}}^{-}$$
(1)
$$\mathrm{Ni}+2{\mathrm{OH}}^{-}\to {\mathrm{NiOH}}_{2}+{\mathrm{H}}_{2}\mathrm{O}+2{\mathrm{e}}^{-}$$
(2)
$$N\mathrm{iO}+{\mathrm{OH}}^{-}\to \mathrm{NiOOH}+{\mathrm{H}}_{2}\mathrm{O}+{\mathrm{e}}^{-}$$
(3)
$$\mathrm{Ni}({\mathrm{OH})}_{2}+{\mathrm{OH}}^{-}\to \mathrm{NiOOH}+{\mathrm{H}}_{2}\mathrm{O}+{\mathrm{e}}^{-}$$
(4)
$$\mathrm{NiO}\left(\mathrm{OH}\right)+\mathrm{glucose}\to \mathrm{Ni}{(\mathrm{OH})}_{2}+\mathrm{glucolactone}$$
$$ {\text{Glucanolactone}}~\xrightarrow{{{\text{hydrolyzation}}}}{\text{Gluconic acide}}~~ $$

The oxidation of glucose on the Ni-PAni/ITO electrode occurs via rapid reduction of Ni(III) to Ni(II) species.

3.8 Effect of thickness of polyaniline

The impact of polyaniline thickness on the electrocatalytic effectiveness of the Ni-PAni/ITO modified electrode toward glucose oxidation was examined and shown in Fig. 10. The cyclic voltammograms observed between − 0.1 and 0.7 V illustrated a redox pair related to the oxidation of Ni(II) to Ni(III) and reduction of Ni(III) to Ni(II). The oxidation current density was observed to decrease as a function of polyaniline film thickness. This decrement would result from the reduction in the effective area of modified electrodes. Therefore, for subsequent experiments, Ni-PAni/ITO-modified electrodes with an electrodeposition thickness of 100 nm were used.

Fig. 10
figure 10

Cyclic voltammetry curves recorded on three Ni-PAni/ITO electrodes prepared at different polyaniline cycle numbers: 3, 5, 7, 9, and 11cycles. Medium: 0.1M NaOH, containing 1mm glucose

3.9 The influence of the deposition time

Optimization of the Ni electrodeposition time is crucial for glucose sensing using Ni-PAni/ITO-modified electrodes. Figure 11 depicts the response of modified electrodes toward the addition of glucose (1 mM) with varying Ni electrodeposition time from 60 to 180 s in NaOH (0.1 M) solution. It is evident that the electrodeposition time of 60 s. yielded the highest response, as indicated by the highest oxidation current density. Longer deposition times such as 90, 120, and 180 s resulted in gradually decreased current densities, possibly due to the generation of larger Ni and even aggregation, which could offset the advantage of a larger surface area. This observation is consistent with previous findings by other authors [35].

Fig. 11
figure 11

Cyclic voltammetry curves recorded on four Ni-PAni/ITO electrodes prepared with different nickel-deposition times: 60, 90, 120, and 180 s in 0.1 M NaOH medium containing 1 mM of glucose

3.10 Electrochemical behavior of the Ni-PAni/ITO electrode and glucose detection calibration curve

The detection of glucose by Ni-PAni/ITO electrodes was assessed by obtaining cyclic voltammograms in NaOH (0.1M) at different concentrations of glucose as depicted in Fig. 12a.The intensity of the oxidation peak gradually increased with increasing glucose concentration, indicating an electrocatalytic oxidation process. However, the peak intensity started to decrease at a glucose concentration of 11 mM due to electrode saturation. The obtained data were used to plot the corresponding calibration curve as presented in Fig. 12b.The response signal of the Ni-PAni/ITO electrode increased consistently with increasing glucose concentration, indicating a typical electrocatalytic oxidation process. The current density for oxidation exhibits a linear relation with high correlation coefficients (R2 = 0.99) for glucose concentration in the ranges of 0.02–0.1 mM and 1–8 mM. The electrode's detection limit was determined to be 0.01 mM, and its sensitivity was approximately 171.5 µA mM−1 cm−2. The electrode's analytical performance was compared with those of recent works for glucose detection, and the results are summarized in Table 3, indicating that our electrode's performance is comparable to others.

Fig. 12
figure 12

a Variation in the response of the Ni-PAni/ITO electrode following the successive injection of different concentrations of glucose in a 0.1 M NaOH solution. b Calibration curve of the sensor response

Table 3 Comparison of the analytical performances of the Ni-PAni/ITO sensor with those of other materials used for the determination of glucose

3.11 Influence of the scanning speed on the oxidation of glucose

Figure 13a represents the cyclic voltammetry curves obtained at various scanning rates for the Ni-PAni/ITO electrode to access the effect of scan rate on the oxidation current. The variation in scanning rate during glucose oxidation increased the oxidation peak intensity and a shift in the oxidation potential toward positive values. Figure 13b represents a linear relationship between the intensity of the oxidation peak and the square root of the scanning rate suggesting that the glucose oxidation reaction on the surface of the PAni-Ni/ITO electrode is controlled by a diffusion process.

Fig. 13
figure 13

a Cyclic voltammetry curves plotted on the Ni-PAni/ITO electrode at different scan rate in a 0.1 M NaOH solution containing 1 mM of glucose. b Variation in the intensity of the glucose oxidation peak as a function of the square root of v

3.12 Ni-PAni/ITO electrode performance

The chronoamperometry technique was used to investigate the effect of various materials on the detection of glucose. The electrode (Ni-PAni/ITO) was exposed to a potential (0.45 V) in a NaOH solution (0.1M) that contains glucose (1mM) and other materials like hydrogen peroxide (H2O2), ascorbic acid (AA), sucrose (Sac), and KCl with 0.1mM concentration. The variation in current as a function of time was recorded and plotted as i = f(t), Fig. 14.It can be observed that there is no significant change in the chronoamperometry curves of the Ni-PAni/ITO electrode in the presence of KCl, sucrose, ascorbic acid, and hydrogen peroxide. This suggests that the oxidation of glucose is not affected revealing that Ni-PAni/ITO electrode exhibits excellent selectivity for the detection of glucose.

Fig. 14
figure 14

Amperometric response of the Ni-PAni/ITO electrode in a 0.1 M NaOH solution with successive injections of the analytes: Glc, KCl, Sac, AA, and H2O2

4 Conclusion

We have described a straightforward electrochemical technique for fabricating nickel-polyaniline composite thin films. This method offers a promising and uncomplicated approach to creating a uniform distribution of nickel particles within the polyaniline matrix. The synthesized composites serve as an effective catalyst for the electro-oxidation of glucose in a NaOH (0.1M) solution. Overall, the results demonstrate the potential of the Ni-PAni electrode as one of the promising candidates for non-enzymatic glucose sensing applications. Further studies could focus on the optimization of the electrode fabrication process and the investigation of its long-term stability and reproducibility. Additionally, the electrode's performance could be evaluated in real samples to determine its practical utility for glucose detection.