1 Introduction

Conducting polymers are the most intriguing materials because they combine the mechanical qualities of polymers with the electrical properties of metals and semiconductors, making them suitable for a wide range of technological applications, which including energy storages and various sensing applications [1,2,3]. Chemical stability and mechanical strength of these conducting polymers, on the other hand, are concerns. Many researchers have recently concentrated on the synthesis of organic–inorganic hybrid systems made up of metal oxides and conducting polymers to address these restrictions. The hybrids have also been proven to be well-known materials with promising applications in sensors, super capacitors, corrosion, solar cells, and light emitting diode devices [4,5,6,7,8] because of their versatility in altering electrical and mechanical properties to create desired synergistic effects Sensing applications are now being explored using hybrid heterojunctions-based nanocomposites [9,10,11,12].

In both household and industrial applications, highly flammable gases such as methane, butane, hydrogen, and LPG are routinely used and due to leakage of these flammable gases many incidents occurred. To save lives and property, it is critical to detect the leakage of such gases in lower concentration using extremely sensitive and highly responsive sensor devices [13, 14]. The goal of this study is to fabricate the organic–inorganic hybrid heterojunctions to produce at room-temperature operable LPG sensors. Polyaniline has unique electrical properties, environmental stability, and ease of processing, therefore we used as active layer in the sensor fabrication. Because it is a well-known geometrically frustrated system with good electrical, magnetic, and reducing gas sensing properties, CuFe2O4 nanoparticles are preferred as inorganic components. It has a characteristic spinel structure AB2O4 which belongs to the cubic space group, with Cu2+ ions filling the tetrahedral 'A' sites and Fe2+ ions filling with the octahedral B sites [15, 16]. We have synthesized PANI-CuFe2O4 nanocomposite employed for LPG sensing properties because of these favorable properties of both PANI and CuFe2O4. Furthermore, currently existing metal oxide sensors have two fundamental drawbacks: limited sensitivity and high working temperatures, both of which are undesirable. In addition, existing metal oxide sensors have two major flaws: low sensitivity and a high working temperature that consumes a lot of power, both of which are undesirable. Using p-type PANI and n-type CuFe2O4 to create a p-n heterojunction barrier that can function as an LPG sensor at room temperature, this work attempts to overcome some of the drawbacks of metal oxide sensors. The electrical, magnetic, and thermal properties of PANI-ferrite composites have been studied by a number of researchers. It's worth noting that the majority of these investigations on PANI-ferrite composite systems have focused on their magnetic, electrical and thermal properties, with only a few looking into their potential as gas sensors.

In this context, our research has a significant endeavor to fabricate a PANI-CuFe2O4 nanocomposite for LPG sensing properties in a practical manner. A low-cost spin coating procedure was employed to make the nanocomposite film, which was then subjected for LPG sensing. The creation of a p-n heterojunction barrier between p-type PANI and n-type CuFe2O4 is used to explain the mechanism of LPG sensing.

2 Experimental

2.1 Materials

Aniline (C6H5NH2) (99.5%), ammonium persulphate [(NH4)2S2O8] (98%), hydrochloric acid (HCl) (34.5%), Copper nitrate [Cu(NO3)2.4H2O] (99%), ferric nitrate [Fe(NO3)3.9H2O] (99%) and urea (CH4N2O) (99.5%), all these reagents were purchased from S.D. Fine Chemicals, Mumbai, India.

2.2 Preparation of n-type CuFe2O4

The auto-combustion method was employed to prepare the n-type CuFe2O4 particles as mentioned earlier in the literature [19, 20]. The stoichiometric amounts of Cu(NO3)2.4H2O, Fe(NO3)3.9H2O, and CH4N2O were diffused into deionised water yielding a uniform solution. This step is done to trigger an exothermic reaction which is self-propagating in nature. The solution is then decanted into a silica crucible and ignited up to the temperature of 300 °C with a muffle furnace until the solution produces exhaustive gaseous products yielding ferrite nano-particles in the form of powdered foam.

2.3 Preparation of PANI-CuFe2O4 nanocomposite

The PANI-CuFe2O4 nanocomposite was prepared by in situ polymerization method at room temperature as reported in earlier literature [4, 13, 21]. To start with, 6.7 ml aniline was dissolved in 180 ml of 1 M HCl taken in a 500 ml round bottomed flask and stirred well to which previously prepared CuFe2O4 powder (10 Wt. % with respect to aniline concentration) was added with vigorous stirring and then sonicated for 15 min to facilitate the adsorption of aniline on the CuFe2O4 surface. 7.5 g ammonium persulphate in 60 ml de-ionized water was added to this mixture, and it was allowed to polymerize for at least 8 to 10 h with constant stirring. After filtration and multiple washings with distilled water and acetone, the composite was collected and dried in a vacuum oven at 100 °C for 8–10 h, yielding a dark green powder. Similarly, pure PANI was synthesized without CuFe2O4 under the same circumstances.

2.4 Mechanism of formation of PANI-CuFe2O4 nanocomposite

Figure 1 shows the PANI-CuFe2O4 nanocomposite preparation process. The presence of iron within the ferrite surface results in a positively charged surface with a point zero charge of pH 6 [17] in an acidic environment. To compensate for the positive charge, the anions (Cl) of HCl are adsorbed onto the ferrite surface. The aniline monomers converted into anilinium cations along this path, resulting in electrostatic interactions between the anions and the anilinium cations. The aniline monomers are electrostatically complex and surround the ferrite surface. By employing an oxidising agent like APS at room temperature, it will yield PANI-CuFe2O4 nanocomposite through polymerisation [18].

Fig. 1
figure 1

Schematic diagram of formation PANI-CuFe2O4 composite

3 Characterizations

FTIR, XRD, SEM, and TEM techniques were used to characterize the produced samples. A Nicolet 750 spectrometer with a wave number range of 4000–400 cm−1 was used for FTIR spectroscopy. The diffractograms were recorded in terms of 2 in the range 10–80° using a Siemens D-5000 powder X-Ray diffractometer with CuK source radiation of wavelength 1.54°. A Hitachi S-520 scanning electron microscope was used to examine the composite's surface morphology. To avoid charging at the sample surfaces, each powder sample was spread on the surface of carbon tape fixed on an aluminum tab and conductive gold coated on the sample, and thus selected portions were photographed.

3.1 Fabrication of thin film

For sensing measurements, PANI and the composite film were developed by dissolving the sample in m-cresol and then coated on a glass plate in the shape of a film of about 2 μm thickness by spin coating unit (Make: Delta Scientific Pvt. Ltd, India, Model: Delta Spin I). Then, silver inter digitized electrodes were printed on film as shown in Fig. 2.

Fig. 2
figure 2

Schematic illustration of thin film with interdigitated silver electrodes

3.2 Sensor measurements

The film was positioned in an evacuated glass chamber at the top. The resistive type sensing response to LPG was carried out by using an electrometer (Make: Keithley, Germany, Model: 6517A. The LPG and test gases introduced from the bottom inlet fitted with a mass flow controller (Make: Alicat Technology, USA, Model: MC-SCCM 100-D/5 M, 5IN, RIN). The initial humidity in the chamber was measured around 32% which is removed with the help of vacuum pump and placed CaCl2 salt into the bottom of the chamber to bring optimum level before experiments with LPG. The experimental setup used for the study at room temperature is shown in Fig. 3.

Fig. 3
figure 3

The schematic diagram of experimental setup for gas sensing studies

4 Results and discussion

4.1 Fourier transform infrared spectroscopy

Figure 4 indicates the Fourier transform infrared spectroscopy (FTIR) spectra of PANI, PANI- CuFe2O4, and CuFe2O4. Figure 4(a) shows the spectra of PANI and the composites, the characteristic absorption bands of PANI occur at 797 cm–1, 1138 cm–1, 1238 cm–1, 1301 cm–1, 1492 cm–1, 1575 cm–1 and 3446 cm–1 respectively. The broad band at 3446 cm–1 is attributed to OH stretching of water molecules [22].

Fig. 4
figure 4

FTIR spectra of a PANI b PANI- CuFe2O4, and c CuFe2O4

The bands that can be viewed 1575 cm–1 and 1492 cm–1 are the characteristic C = C stretching of the quinoid and benzenoid rings, the band at 1301 cm–1 and 1238 cm–1 are consigned to CN stretching of the aromatic benzenoid rings, the broad band at 1138 cm–1 that is defined by MacDiarmid et al. as the “electronic–like band” is linked to the vibration mode of N = Q = N (here Q represents the quinoid ring), signifying the formation of HCl doped PANI [4, 22, 23], the band at 797 cm–1 is marked to the out of plane deformation of CH in the 1,4disubstituted benzene ring as shown in Fig. 4(b). The resultant stretching vibrations of PANI are in tune with published research studies [24, 25]. In any respect, the FTIR spectrum of the nanocomposite indicates a small shift substantiating the interfacial interaction within the ferrite particles and the PANI chains in both their respective bands. The PANI chains and the O-atoms share an H-bonding encircling the ferrite surface. This force is impelling and roots the ferrite particles into the PANI chains [27].

Waldron reported [19, 26], the ferrite metal ions are generally positioned in two different sub lattices assigned as tetrahedral and octahedral sites agreeing to the geometrical configuration of the oxygen nearest neighbors. Figure 4(c) shows the FTIR spectrum shows at 538 and 439 cm–1 corresponding bands of CuFe2O4, all samples with two significant FeO stretching vibrations in the spectrum, analogous to the intrinsic stretching vibrations that are seen at both the tetrahedral and the octahedral sites [28, 29]. The feature attributes of the spinel ferrites in single phase are outlined by the absorption bands.

4.2 X-ray powder diffraction technique

Figure 5 indicates the X-ray powder diffraction (XRD) patterns of PANI, PANI- CuFe2O4 composite and CuFe2O4. Figure 5(a) it is observed that the three diffraction peaks of PANI at 2θ = 15.3º, 20.8º and 25.2º correspond to (100), (110) and (111) planes and ascribe to the periodicity being parallel and perpendicular to the polymer chains. This suggests that the constitution of PANI exists in a semi crystalline form similar to emeraldine salt. The current results found can be confirmed using the preceding studies and documentations of the previous research and reports [4, 19]. From Fig. 5(b), it can be noted that the XRD pattern of the composite is related to that of ferrite with a faint peak (111) of PANI proving the predominance of ferrite particles and thereby verifying the interfacial interaction between PANI and the ferrite [19, 29].

Fig. 5
figure 5

XRD pattern of a PANI b PANI- CuFe2O4 composite and c CuFe2O4

The XRD pattern of CuFe2O4 (Fig. 5c) indicates peaks at 2θ = 19º, 31º, 35.24º, 38.40º, 44º, 53º and 62º that correspond to (111), (220), (311), (222), (400), (422) and (440) planes in tune with the standard joint commission PDS File No.25–0283 and also with the findings published in preceding research affirming that the synthesized CuFe2O4 has a single-phase cubic spinel structure with Fd3m space group [30].

However, the fact that the two other peaks of polyaniline (Fig. 5a) are not visible, prove that the ferrite particles restrain the growth of PANI to form a bulk polymer [25, 31]. This further reveals that structural similarity of the composite with that of the ferrite is rooted into PANI matrix and is ineffective to the ferrite’s crystalline behavior [19, 32]. By Scherrer formula [33] as indicated in Eq. 1, at about 36º one can notice a sharp pronounced peak and the dimension for crystallite ‘t’ is achieved around 12 nm and 20 nm for both the ferrite and the composite material.

$$t = \frac{k\lambda }{{b\cos \theta }}$$
(1)

4.3 Scanning electron microscopy

Figure 6 shows the scanning electron microscopy (SEM) image of the prepared PANI, PANI-CuFe2O4 composite and CuFe2O4. The SEM image in (Fig. 6a) outlines a well granular non-porous and agglomerated morphology with a homogeneous surface for PANI [34]. Figure 7b reveals that the highly agglomerated, uneven well-connected grains consisting of several pores which were very beneficial for adsorption of LPG molecules and the PANI particles serve as a cover on the surface of the ferrite particles. This kind of morphology promotes the formation of p–n junction creating an environment on the composite sample for the adsorption of gases directing gas diffusion into the junction there by making it desirable for gas sensing applications. There have been several citations of composites in recent studies with such identical morphological features [35,36,37]. The SEM image in Fig. 6 (c) establishes CuFe2O4 to be spongy structures consisting of several agglomerated particles and many are formed.

Fig. 6
figure 6

SEM images of a PANI, b PANI- CuFe2O4 composite c CuFe2O4

Fig. 7
figure 7

Sensing response of PANI-CuFe2O4 composite for LPG, CO2 and N2 gases

5 LPG sensing studies

The interaction of the composite PANI-CuFe2O4 with LPG was confirmed by a change in resistance when LPG was added into the chamber, followed by a return to the initial resistance when LPG was removed. The LPG sensing response of the composite has been studied at room temperature for different gas concentrations (ppm) scaling from 100–1200 ppm using fractional base line manipulation [38, 39] as per Eq. (2).

$$S(\% ) = \frac{{\left| {R_{air} - R_{gas} } \right|}}{{R_{air} }}{\rm X}100$$
(2)

where, Rair is the initial equilibrium resistance in presence of air and Rgas is the resistance in presence of the target gas of the sensing material.

Initially at room temperature, the sensing response of the composites was assessed for LPG (86%), CO2 (10%), and N2 (5%) gases at gas concentration of 764 ppm and it was found that the relative sensing response of the composite was found higher for LPG as shown in Fig. 7. So, further investigations on sensing by the composite was performed with LPG. Various concentrations of LPG were introduced into the chamber and corresponding resistance were recorded and sensing responses were calculated. The resulting plots of sensing response and also transient sensing response of the composite to various LPG concentrations. From the plot it can be seen that, at room temperature the sensing response of PANI and the composite to be varying for concentrations of LPG from 100–1200 ppm. From the following experimental analysis it can be recognized that a significant refinement of about 86% by the PANI-CuFe2O4 composite in LPG sensing response in comparison to the infirm sensing response of pristine PANI of 5% [3, 13] because due to high surface area, porosity and irregular cracks contributes more active sites which reveals from SEM (Fig. 7b) studies [40], Also, with the increase in concentration, the sensing response also consistently increases and the film of the composite was found sensitive for a low LPG concentration of 100 ppm [21, 41, 42]. Further, it is found that the resulting sensing response curve to be linear in the beginning from 764 ppm with a maximum sensing response of PANICuFe2O4 nanocomposite is 86% and then it becomes saturated. This observed saturation is because of multilayers of LPG on the composite being completely blocked by the sensing sites [21, 42,43,44].

The LPG sensing mechanism explain based on the two factors such as absorption of reduction gases on the composite surface and reduction of LPG gases into CO2 and H2O as shown in Fig. 8. The excess of oxygen in metal oxide provides O2− charges on the composites materials which generates lot of free electron the composite surface. When LPG gas comes in contact over composites it reduce in to carbon dioxide and liberate water molecules. The linear segment of the sensing response characteristic can be explained with the help of energy band diagram drawn using measured values of band gap energies of PANI (2.52 eV) and CuFe2O4 (2.55 eV) and illustrated in Fig. 9. The mechanism of sensing can be understood interms of change in width of depletion layer that has formed between p-type PANI and n-type CuFe2O4 during the formation of the composite. Referring to the SEM image (Fig. 9b), the composites has open porous structure with an increased surface area where in the ferrite particles are embedded in the PANI matrix effectually form a p–n junction barrier layer between them. Consequently, on introducing a reducing gas such as LPG, into the chamber, it favorably gets adsorbed onto PANI and further liberates electrons upon interacting with its π electron network. This results in formation of more accepter ions on the p-side of the junction, thereby broadening the space-charge layer. Thus, the negatively charged O-ions of the ferrite drift from n-side of the junction toward the p-side expanding the depletion depth as shown in Fig. 9(c). This results in decrease of carrier accumulation at the junction and increase of the barrier height, further effecting the increase in the composite resistance [9, 45].

Fig. 8
figure 8

Shows the LPG sensing mechanism of PANI-CuFe2O4 composite

Fig. 9
figure 9

Presents the proposed diagram view of energy band diagram for a individual PANI and CuFe2O4 b PANI- CuFe2O4 composite in the presence of air and c PANI- CuFe2O4 composite in presence of LPG

Figure 10 shows the change in resistance as a function of time when the LPG gas turned on and off for PANI and PANI PANI-CuFe2O4 composite. It is observed that the LPG gas absorbed at the initial concentration is high and reach at the peak resistance at 764 ppm in 80 s. Later when LPG gas is turned off the resistance of the decreases may be due to the surface saturation of the PANI and its composite. The change in resistance may occurs due to the reduction of LPG gas on the PANI-CuFe2O4 composite results decrease in the free electron charge carrier on its surface and higher grain boundaries between the polyaniline. The composite elucidate the lower change in resistance and higher absorption capacity of LPG gas may be due to the formation of p-n heterojunctions between the PANI and CuFe2O4 particles results extended of chain length occurs in composite.

Fig. 10
figure 10

Shows the change in resistance as a function of time

The Response time and recovey time are some essential factors which are vital to determine the feasibleness of devising the composites to function as LPG sensor [9, 46].

Figure 11 shows the composite's response and recovery characteristic curves at 1000 parts per million of LPG. When the gas was injected into the chamber, the composite demonstrated a very quick response time of 80 s, and a recovery period of 180 s when the gas was removed. In order to understand, the high LPG sensing performance of PANI-CuFe2O4 composite prepared by in-situ chemical polymerization method, its sensing response, response time, and recovery times were compared to those reported in earlier literatures of PANI/inorganic nanocomposite are given Table 1 [47,48,49]. The composite was also found to be stable in sensing over a one-month period when tested for 500 ppm and 1000 ppm of LPG (Fig. 12), with a negligible degradation of 3.5% in sensing response. Thus LPG sensor using these composites is having advantages such as the working temperature can be brings down to room temperature, leads to increases in the life time of sensor elements and the interfering gases are less active when compared to LPG. Thus the sensor has good selectivity for LPG. A prototype of the device is also fabricated and experimental trails under progress for practical outdoor as well as domestic applications.

Fig. 11
figure 11

Represents the response and recovery characteristic curve of PANI- CuFe2O4 composite to 1000 ppm of LPG

Table 1 Earlier literatures on the sensing performance of PANI/inorganic nanocomposite for LPG sensor
Fig. 12
figure 12

Shows stability response of PANI- CuFe2O4 composite at a 1000 ppm and b 500 ppm of LPG concentration

6 Conclusions

The Polyaniline–CuFe2O4 nanocomposites with different weight percentages have been prepared by in-situ polymerization and the prepared nanocomposites spin coated over glass to fabricate of an LPG sensing device which outperforms in terms of efficiency. FTIR spectra of the nanocomposites revels a shift in the characteristic peaks at higher wave number due to the π–π interaction of PANI and CuFe2O4 nanoparticles. The crystalline nature of the nanocomposite and nanostructure was confirmed by XRD investigation. SEM analysis revealed that granular agglomerated structure of PANI nanocomposites. The change in resistance confirms the higher absorption of LPG gas due to the formation of p-n heterojunctions between the PANI and CuFe2O4 nanoparticles. It is also important to note that the porous morphology of the nanocomposite is particularly favorable for LPG adsorption. A simple LPG sensor that works at room temperature and is made entirely of spin coated PANI-CuFe2O4 nanocomposite structure was found to have a maximum sensing response of 86% at 764 ppm of LPG. The energy band diagram was used to explain the sensing mechanism. Over the course of one month, the sensor was determined to be stable, with response and recovery times of 80 and 180 s, respectively. As a result, the composite has the potential to be an effective LPG sensor.