Introduction

Heavy metal contamination in the environment and food has aroused great public concern as it poses serious threat to the ecological system and humans (Doyi et al. 2018; Hu et al. 2021). So far many traditional technologies have been developed in the field of heavy metal ion (HMI) detection including laser-induced breakdown spectroscopy (LIBS), inductively coupled plasma mass spectrometry (ICP-MS), and atomic absorption spectroscopy (AAS) (Rezk et al. 2018; Xing et al. 2019; Komendova 2020). However, these technologies have some drawbacks, for instance, the high cost and large volume of the instrument make it difficult to realize rapid onsite detection of HMIs. Compared with the laboratory analysis method, electrochemical technology has become one of the main techniques for the detection of HMIs in recent years owing to the low cost, fast onsite detection, and high sensitivity (Kilele et al. 2021, 2020). Some studies have reported that edible mushrooms can accumulate multiple HMIs in their fruit body such as copper, lead, and cadmium (Kokkoris et al. 2019; Zhang et al. 2020). However, the electrochemical detection of HMIs is currently mainly concentrated on a single heavy metal, so the design of a high sensitive approach for the simultaneous detection of multiple HMIs is of great significance for improving the efficiency of heavy metal detection. It is a challenge to achieve efficiently simultaneous detection of multiple heavy metals, because it requires not only a large number of adsorption sites on the surface of the sensor, but also a high electron transfer rate.

Certain HMIs tend to bind to ligands containing nitrogen, sulfur, and oxygen (Maciel et al. 2019; Fouda-Mbanga et al. 2021; Majdoub et al. 2021; Arduini et al. 2020; Hanif et al. 2019a; Unnikrishnan et al. 2021). One of the important factors to improve the detection efficiency of sensors is to enhance the sensitivity of sensors; nanomaterials with excellent performance can be modified on the surface of the sensor, which is beneficial to improve the performance of the sensor (Chokkareddy et al. 2020, 2021). The covalent organic framework (COF) is a newly developed porous crystal material with the characteristics of a large surface area and unique ordered channel structure (Magano et al. 2020; Bagheri et al. 2021). In addition, COF is structurally predesignated, synthetically controllable, and easy to be functionalized (Wang et al. 2020; Elwakeel et al. 2020; Skorjanc et al. 2021; Arul et al. 2020; Zhang et al. 2021). Zhang et al. (2018) prepared a COF material with a terminal unsaturated amino group in the COF as the connection by solution infiltration method; the sensor showed great electrocatalytic performance in electrochemical detection. Wang et al. (2021) prepared a novel N,S-rich COF BTT-TZT that provided abundant adsorption sites for Hg2+. Hence, COF designed with a specific structure can be used for firm accumulating of HMIs. A large number of binding sites of COF provide great potential in the field of HMI detection. However, the poor electronic conductivity of COF has restricted its usability in electrochemical detection. Therefore, it is necessary to introduce highly conductive nanomaterials to improve the electrochemical performance of the sensor.

Among various nanomaterials, multiwalled carbon nanotubes (MWCNTs) are outstanding materials that not only have good electrical conductivity and high surface area but also contain many functional groups (Khan et al. 2021; Wu et al. 2020). However, MWCNTs can form insoluble large aggregates in water due to the defects and impurities in the structure, affecting the conductivity of MWCNTs (Jintoku et al. 2019). Therefore, it is necessary to introduce a dispersant to improve the stability and dispersion of MWCNTs. Calcium lignosulfonate (CLS) is an inexpensive, reproducible, and amphiphilic biopolymer with numerous hydrophilic groups, i.e., oxygen-containing groups and sulfonic groups. CLS not only effectively solves the problem of aggregation of MWCNTs but also benefits to the adsorption of HMIs by taking the advantages of these functional groups in the structure (Sajjadi et al. 2021; Söğüt et al. 2020). Nafion is a perfluorosulfonate-polytetrafluoroethylene copolymer; it has been widely used as a modified electrode material owing to its good membrane forming ability and cation permeability (Olejnik et al. 2020; Mynttinen et al. 2020; Kumar et al. 2021). Compared with the traditional sensor based on COF, the sensor constructed in this work not only has higher adsorption performance, but also improves the poor conductivity of COF in the process of electrochemical detection, and improves the mechanical strength of the sensor. The negatively charged functional groups of COF, MWCNTs/CLS, and Nafion played a synergistic role in HMI accumulation by electrostatic interaction.

In this study, a COF/MWCNTs/CLS/Nafion/glass carbon electrode (GCE) was developed for the effective detection of HMIs. The morphological and structural analyses of COF were conducted using different characterization methods. The electrochemical characteristics based on different materials were studied by cyclic voltammetry (CV) and electrochemical impedance spectroscopy (EIS). The performance of the prepared sensor in detecting trace Cu(II), Pb(II), and Cd(II) ions was detected by SWASV (square wave anodic stripping voltammetry) under optimized experimental conditions in edible mushrooms. At the same time, the mutual interference mechanism between the target ions was analyzed to verify the scientificity of the synchronous detection of multiple HMIs in the same system. Furthermore, the reproducibility, stability, and anti-interference ability of the fabricated sensor were studied.

Experiments

Materials and Instruments

Nafion solution (5%) was provided by DuPont Company. MWCNTs, CLS, potassium carbonate, cyanuric chloride, and other chemicals were provided by Macklin (Shanghai, China). The standard solution of copper, lead, and cadmium were purchased from the National Pharmaceutical Reagent Company (Shanghai, China). All the reagents were analytically pure. Ultrapure water (18.2 MΩ.cm) was used in all the experiments.

Apparatus

The apparatus of this work was listed in supplementary materials.

Preparation of COF Nanocomposite

The COF nanocomposite was synthesized using a solvothermal method. First, 4 mM of melamine was slowly added to a dioxane solution (20 mL). After 30 min of ultrasound, the dioxane solution containing 6 mM of p-diphenylamine and 12 mM of potassium carbonate were heated on an oil bath at 90 °C for 72 h. Then, the obtained material was extracted using dichloromethane for 72 h. Finally, a solid was obtained through filtration and separation.

Preparation of MWCNTs/CLS

Briefly, MWCNTs (30 mg) were dispersed in 30-mL ultrapure water; then, the CLS (0.01 mg/mL) was added and ultrasonicated for 30 min. Finally, the mixture was rotated under vibration for 12 h and stored at 4℃ for further use.

Fabrication of COF/MWCNTs/CLS/Nafion/GCE

As shown in Scheme 1, the GCE (3 mm in diameter) was first polished using alumina powder (0.30 and 0.05 μm) before modification. Next, the GCE was used for ultrasonic in alcohol and water to thoroughly remove the residual powder. Then, all the reagents were uniformly dispersed by ultrasonic oscillations before usage. Subsequently, 8 μL of MWCNTs/CLS, COF, and Nafion (1 wt%) solution were dripped onto the prepared bare GCE and dried under room temperature conditions in sequence. Finally, the COF/MWCNTs/CLS/Nafion/GCE nanocomposite was obtained.

Scheme 1
scheme 1

Fabrication process of COF/MWCNTs/CLS/Nafion/GCE

Edible Mushroom Sample Preparation

The method of sample preparation was listed in supplementary materials.

Results and Discussion

Characterization of COF Nanocomposite

The morphology of COF nanocomposite was studied by SEM, TEM, and EDS. As shown in Fig. 1A, the SEM images showed the overall morphology of COF with a porous structure in the image which clearly showed the dimensional structure of COF nanocomposite. The three-dimensional microstructure was shown in Fig. 1B and C; COF presented a uniform porous morphology, thus showing a large specific surface area. The abundant pore structure tremendously made more heavy metal ions load onto the sensing interface, which was beneficial to improve the detection efficiency of the sensor. The advantages of COF/MWCNTs/CLS/Nafion/GCE in electrochemical detection of heavy metals were greatly enhanced. The elements of COF were analyzed by EDS. Figure 1G, H, and I shows that the C, N, and O elements were uniformly distributed on the nanocomposite. As shown in Fig. 1E and F, the TEM image further showed that the pore structure existed in COF, and the nanometer diameter was approximately around 10 nm to 20 nm. These results indicated the successful synthesis of COF.

Fig. 1
figure 1

A, B, C, and D SEM images of COF material; E and F TEM images of COF material; G, H, and I EDS patterns of COF material

The formation of COF nanocomposite was studied by XPS. The characteristic peaks at 532.1 eV, 400.3 eV, and 285.0 eV in the spectrum of COF correspond to the elements O, N, and C in the composite (Fig. 2A). The peaks at 399.7 and 398.7 eV in the N1s spectrum could be attributed to the pyridinic N and pyrrolic N in the COF, respectively (Fig. 2B) (Sun et al. 2016a). As shown in Fig. 3A, the FT-IR spectrum showed the C = N stretching vibrations at 1619 cm−1; the vibration bands observed at 1702 and 3316 cm−1 appeared were because of the N–H stretching vibrations indicating the successful synthesis of COF material (Cui et al. 2021).

Fig. 2
figure 2

A XPS full research of COF; N1s region B in the XPS of COF composite

Fig. 3
figure 3

A FT-IR spectra of the COF material; B CV and C Nyquist plots of COF/GCE, Nafion/GCE, MWCNTs/GCE, MWCNTs/CLS/GCE, and COF/MWCNTs/CLS/Nafion/GCE detected in 0.1 M KCl containing 5.0 mM [Fe(CN)6]3−/4−; D SWASV curves of bare GCE, COF/GCE, Nafion/GCE, MWCNTs/GCE, MWCNTs/CLS/GCE, and COF/MWCNT/CLS/Nafion/GCE recorded in HAc-NaAc buffer solution (pH 5.0) containing 500 nM of Cu(II), Pb(II), and Cd(II) after 480 s of accumulation at potential of − 1.3 V

Electrochemical Responses

The electrochemical characterization of different materials were studied by CV, EIS, and SWASV. CV and EIS analyses were conducted in a 5 mM [Fe(CN)6]3−/4− solution containing 1 M KCl. As shown in Fig. 3B, the CV image of different materials indicates that the MWCNTs/CLS/GCE nanocomposite had the best electron transfer rate compared to COF/GCE, MWCNTs/GCE, Nafion/GCE, and MWCNTs/CLS, enhancing the electrical activity of COF/MWCNTs/CLS/Nafion modified sensor. The effective electroactive area is a crucial part of assessing electrochemical behavior. The effective electroactive area was determined based on the Randles–Sevcik equation.

$${I}_{p}=2.69\times {10}^{5} {AD}^{1/2}{n}^{3/2}{\gamma }^{1/2}C$$

In the above equation, A represents effective active surface area of the modified electrode (cm2); D means the diffusion coefficient in solution, approximately 6.70 × 10−6 cm−2 s−1; n means the amount of electron transferred in the reaction, approximately 1; γ represents the scan rate, 0.05 (V s−1); C represents the concentration of detected molecule (5 mM); Ip is the current of redox peak. The effective active area of COF/MWCNTs/CLS/Nafion/GCE nanocomposite for 5 mM [Fe(CN)6]3−/4− was 1.8 times higher than COF/GCE and 1.2 times than bare GCE as obtained through calculation; the effective active area of MWCNTs/CLS/GCE nanocomposite for 5 mM [Fe(CN)6]3−/4− was 1.16 times higher than MWCNTs/GCE as obtained through calculation. These results showed that MWCNTs/CLS significantly improved the conductivity of the electrode.

EIS were carried out to study the surface properties in the above electrodes. The Nyquist plots reflected the charge transfer resistance corresponding to the semicircular arc (Fig. 3C) (Motia et al. 2020). The Nafion/GCE and COF/GCE showed an enlarged semicircular arc compared to COF/MWCNTs/CLS/Nafion/GCE, indicating that the MWCNTs/CLS modified electrode significantly decreased the charge transfer resistance. However, for the MWCNTs/CLS/GCE nanocomposite, the diameters of the semicircular arc decreased compared to MWCNTs/GCE owing to the good diffusion effect of CLS. The obtained results of EIS were in accord with CV and proved that the MWCNTs/CLS nanocomposite played a positive role in improving the conductivity of the modified electrode.

As shown in Fig. 3D, the SWASV responses of different materials were tested in a HAc-NaAc buffer solution (ABS, 0.1 M, pH 5.0) containing three target ions (500 nM). A comparison of different materials indicated that the COF/MWCNTs/CLS/Nafion/GCE nanocomposite exhibited the best catalytic performance towards the detection of HMIs. The peak currents of COF/GCE, MWCNTs/CLS/GCE, and Nafion were significantly larger than the bare electrode, which could be explained in terms of abundant functional groups, electrocatalytic ability, and adsorption performance of COF, MWCNTs/CLS, and Nafion composite. The COF/MWCNTs/CLS/Nafion/GCE nanocomposite showed the largest peak current in Fig. 3D; a significant enhancement in the electrochemical response signal can be attributed to the synergistic interaction between COF, MWCNTs, and Nafion. The number of active sites increased owing to the modification of COF and MWCNTs/CLS and the efficiency of electrochemical detection of HMIs was effectively improved.

Optimization of Experimental Conditions

To achieve the best condition for detecting HMIs based on the COF/MWCNTs/CLS/Nafion/GCE nanocomposite, the type of buffer solution, deposition time, and pH of buffer solution were optimized using the SWASV method.

The type of buffer solution significantly affected the electrochemical behavior of sensors. The effect of three different buffer solutions including phosphate buffer solution (PBS, 0.1 M, pH 5.0), ABS (0.1 M, pH 5.0), and sodium chloride buffer solution (NaCl, 0.1 M, pH 5.0) on the peak current was studied (Fig. 4A). As shown in Fig. 4A, the peak values of HMIs in the PBS and NaCl were entirely lower than the peak current in ABS. Especially, the response curves of Pb(II) and Cd(II) were inconspicuous in the NaCl solution. In comparison, it was found that the largest response curves of HMIs were well separated, and the intensities of peak currents were remarkably improved in ABS. The above results probably due to the difference in the degree of complexation between HMIs and the electrolyte solution (Hanif et al. 2019b). According to the results, ABS was selected as the electrolyte solution.

Fig. 4
figure 4

Optimum experimental conditions. A Effect of different buffer solutions; B pH of detection solution (pH: 3.0–6.0); C accumulation time (60 s–540 s); (D) accumulation potential (− 1.0– − 1.3 V) on the stripping peak current of Cu(II), Pb(II), and Cd(II) ions (error bar: n = 3)

The pH values affected the peak current for the detection of HMIs (Fig. 4B). The response signals of HMIs gradually improved with the increase in pH from 3.0 to 5.0. The largest peak currents of three HMIs appeared at pH 5.0. When the pH was further increased from 5.0 to 6.0, the peak curves of three HMIs decreased on the contrary. At a comparatively low pH, the hydrophilic groups were protonated, thus weakening the absorption ability of the HMIs on the electrode materials (Hanif et al. 2019c). When the pH value was higher than pH 5.0, the reduction in the stripping peaks at high pH value exhibited a lower current value owing to the precipitation of metal ions in the form of metal hydroxide complexes which considerably decreased the existing number of metal ions in the solution. Based on these results, pH 5.0 was selected as the best pH for this study.

The dependence of stripping peaks response on the deposition time was examined in the range of 60–540 s and obtained results were shown in Fig. 4C. With the increase in deposition time, the peak current reached the maximum value at 480 s. Nevertheless, the response signals of Pb(II) and Cd(II) decreased at 500 s; the response signal of Cu(II) decreased at 510 s. This was probably because the active sites on the electrode surface tend to be saturated due to the accumulation of a great number of HMIs (Akhtar et al. 2020). On the other hand, this phenomenon probably occurred due to the competitive adsorption of three target HMIs. Thus, some HMIs could not dissolve from the pores during the dissolution. On the basis of these results, 480 s was preferred as the ideal deposition time for further studies.

Deposition potential is a crucial parameter to obtain the best response in the electrochemical detection of HMIs. In this experiment, the effect of deposition potential towards HMIs was studied (Fig. 4D). The results show that the response signals for HMIs gradually increased with the decrease in potentials from − 1.0 to − 1.3 V, and the peak current for HMIs exhibited a maximum value at a potential of − 1.3 V. Then, the current decreased when a more negative deposition potential was applied. Based on these results, − 1.3 V was the optimum deposition potential in this study.

Electrochemistry Detection of Cu(II), Pb(II), and Cd(II) Ions

Under the optimal conditions, SWASV was applied for the determination of three target ions based on COF/MWCNTs/CLS/Nafion/GCE nanocomposite in the ranges of 0.6–63.5 μg/L, 2.1–207.2 μg/L, and 1.1–112.4 μg/L for Cu(II), Pb(II), and Cd(II) ions, respectively (Fig. 5A). The linear regression equations of these three HMIs were as follows: I (μA) = 0.72C + 8.2 (μg/L) (R2 = 0.991), I (μA) = 0.41C + 6.4 (μg/L) (R2 = 0.990), and I (μA) = 0.48C + 46.57 (μg/L) (R2 = 0.991). The limits of detection (S/N = 3) were calculated to be 0.2 μg/L, 0.7 μg/L, and 0.4 μg/L, respectively. The detection results of COF/MWCNTs/CLS/Nafion/GCE nanocomposite compared with other developed sensor for the electrochemical detection of the above HMIs were shown in Table 1. The fabricated sensor exhibited a wide linear response and low limit of detection, well below most reports in Table 1.

Fig. 5
figure 5

A SWASV response of COF/MWCNTs/CLS/Nafion/GCE with different concentrations of Cu(II), Pb(II), and Cd(II) ions recorded in HAc-NaAc buffer solution (pH 5.0) containing 500 nM of Cu(II), Pb(II) and Cd(II) after 480 s of accumulation at potential of -1.3 V; B, C, and D Calibration curves of sensing platform. (Error bar: n = 3)

Table 1 Comparison of analytical parameters obtained using COF/MWCNTs/CLS/Nafion/GCE for Cu(II), Pb(II), and Cd(II) ion sensing with those of previous reports

Real Edible Mushroom Sample Detection

To evaluate the practical feasibility of COF/MWCNTs/CLS/Nafion/GCE nanocomposite, the prepared sensor was tested using three different edible mushroom samples via the standard addition method. The analytical results and recoveries of the modified sensor and ICP-OES were shown in Table 2. The recoveries were in the range of 95–109%, and the detection results were close to those of ICP-OES, indicating that the COF/MWCNTs/CLS/Nafion/GCE nanocomposite could be reliably used for detecting Cu(II), Pb(II), and Cd(II) ions in actual samples.

Table 2 Comparison results of Cu(II), Pb(II), and Cd(II) ions in three different mushroom samples

Interference Mechanism of Coexisting Ions, Reproducibility, Stability, Anti-interference Ability

Figure 6A and B showed the interference of Pb(II) on the SWASV response of coexisting Cu(II) ions (0.1 μM) and Cd(II) ions (0.1 μM) with varying Pb(II) ion concentrations (0.1–0.4 μM). No significant change in the peak current of Cd(II) was observed; the response current of Cd(II) slightly decreased with the increase in the content of Pb(II) ions. This tendency may be caused by the competitive capture of Pb(II) and Cd(II) ions in the sensing interference (Zhu et al. 2017). Cu(II) ions were affected by Pb(II) ions owing to the formation of an intermetallic compound on the surface of the electrode; thus, the sensitivity toward Cu(II) ions improved with the increase in the content of Pb(II) ions (Durai and Badhulik 2020). The interference of Cu(II) (0.1–0.4 μM) towards Pb(II) ions (0.1 μM) and Cd(II) ions (0.1 μM) was shown in Fig. 6C and D. Similarly, slight changes in the peak current ranges were recorded for Cd(II) ions with the increase in the concentration of Cu(II) ions. However, the response signal of Pb(II) clearly increased with the concentration. This was probably because of the formation of a Cu film, followed by the formation of Cu-Pb intermetallic compounds in the process of simultaneous accumulation.

Fig. 6
figure 6

A SWASV images of Cu(II) and Cd(II) (0.1 μM) with Pb(II) (0.2–0.4 μM); B peak current of coexisting ions corresponding to A; C SWASV images of Pb(II) (0.1 μM) and Cd(II) (0.1 μM) with Cu(II) (0.1–0.4 μM) by COF/MWCNTs/CLS/Nafion/GCE recorded in HAc-NaAc buffer solution (pH 5.0) after 480 s of accumulation at potential of − 1.3 V; Peak current of coexisting ions corresponding to C. (Error bar: n = 3)

A total of 30 electrodes were prepared from the same batch and evaluated the reproducibility of the sensor by detecting of three concentrations of Cu(II), Pb(II), and Cd(II). Figure 7(A), (B), and (C) showed the reproducibility of the sensor under the conditions of different concentrations of heavy metal ions. The RSDs derived from the ten currents for three HMIs were 4.72%, 4.03%, and 3.01% at concentration of 200 nM; when the concentration of three HMIs was 600 nM, the RSDs are 5.56%, 3.44%, and 2.59%, and the RSDs of three HMIs were 4.34%, 3.02% and 3.29% at concentration of 800 μM. These results indicated that COF/MWCNTs/CLS/Nafion modified electrode exhibited excellent reproducibility for repeated electrochemical determination of HMIs.

Fig. 7
figure 7

A and B Reproducibility and stability assessment of the modified sensor; C anti-interference ability of sensor in the presence of 5 μM Mg(II), Zn(II), Ca(II), Fe(III), Ni(II), Ag(I) and mixture ion s recorded in HAc-NaAc buffer solution (pH 5.0) containing 500 nM of Cu(II), Pb(II) and Cd(II) after 480 s of accumulation at potential of − 1.3 V

Furthermore, the long-term stability of COF/MWCNTs/CLS/Nafion/GCE nanocomposite was also studied (Fig. 8A). The high stability of the sensor was verified by testing the numerical change of peak current within 30 days. The test was conducted every 5 days, and the results showed that the fabricated sensors exhibit excellent stability for four weeks with an initial current response of 94.2%.

Fig. 8
figure 8

A Stability within 30 days under room temperature and B anti-interference ability of sensor in the presence of 5 μM Mg(II), Zn(II), Ca(II), Fe(III), Ni(II), Ag(I), and mixture ions recorded in HAc-NaAc buffer solution (pH 5.0) containing 500 nM of Cu(II), Pb(II), and Cd(II) after 480 s of accumulation at potential of − 1.3 V. (Error bar: n = 3)

In order to evaluate the anti-interference ability of the current sensing system, the effects of other cations at a concentration of 10 times that of target ions were evaluated by SWASV. Figure 8B showed that the response current changed slightly after adding interference metal ions and mixture interference ions in actual edible mushroom samples. The results indicated that this new strategy had good selectivity for HMI determination. Therefore, the sensing performance of COF/MWCNTs/CLS/Nafion/GCE nanocomposite is expected to be acceptable for the detection of these three HMIs in actual edible mushroom samples.

Conclusion

This work demonstrates an efficient electrochemical sensor based on 3D porous COF, MWCNTs/CLS, and Nafion with excellent electrochemical characteristics. COF materials were synthesized by simple hydrothermal method, and the morphology and composition of the materials were studied by various characterization methods. The successful synthesis of the material was proved by various characterization methods. The COF/MWCNTs/CLS/Nafion/GCE nanocomposite had a unique surface structure, high adsorption efficiency, and numerous active sites such as amino, sulfonic group, and carboxyl groups, which could improve the complexation ability of HMIs. The influence of the type of buffer solution, deposition time, deposition point, and pH value on the electrochemical detection of heavy metals was studied. In addition, COF/MWCNTs/CLS/Nafion/GCE exhibited excellent stability, reproducibility, as well as anti-interference ability towards detection of Cu(II), Pb(II), and Cd(II) with LOD of 0.2 μg/L, 0.7 μg/L, and 0.4 μg/L, respectively. The sensor was applied to the detection of edible mushroom samples; the recoveries were in the range of 95–109%. This study provides a new strategy for material synthesis and application to the electrochemical analysis of HMIs, which is expected to monitor food safety in the planting source.