Introduction

Melamine (C3H6N6), a kind of triazine analogue with three amino groups, is an industrial chemical used in the production of melamine-formaldehyde resins [1, 2]. It contains 66 wt% of nitrogen, and has been used as a filler for protein-rich diets by unethical manufacturers. This fact was mirrored in the pet food incident in early 2007, and the milk products disgrace recently when melamine was added to raw materials to get high protein contents [3]. It has low oral acute toxicity, but the chronic administration of high concentrations can induce renal pathology and even death, especially in babies and children [4]. Melamine in combination with cyanuric acid is able to form insoluble melamine cyanurate crystals in the kidney, which causes renal failure.

This situation prompted the US Food and Drug Administration (FDA), the European community, and other countries to establish the criteria of maximum residue limits for melamine in various food products. The standard limits of 1 ppm for melamine in infant formula and 2.5 ppm in other milk products have been introduced by many countries [5]. Consequently, a sensitive and reliable method is urgently needed to monitor it in food and, particularly, in dairy products for children.

Conventionally, determination of melamine in various real samples has been performed using gas chromatography; high-performance liquid chromatography [6, 7]; infrared [8], mass [9], and nuclear magnetic resonance spectroscopy [10]; electrophoresis [11]; and chemiluminescence detection [12, 13]. Unfortunately, the current methods, although mostly accurate and sensitive, are difficult to be implemented because of complicated instruments and time-consuming sample pretreatments [5, 12, 14]. Recently, some works have also been developed for the analysis of melamine based on optical techniques [15, 16] and electrochemical techniques [17,18,19,20]. Some reports on application of molecularly imprinted polymers in construction of a variety of electrochemical sensors were recently published [21,22,23,24]. Several methods for preparation of molecular imprinting polymers (MIPs) have been reported frequently based on soft lithography technique [25], molecular self-assembled approach [26], and electropolymerization [27].

The electropolymerization methods have some attractive features including easy adherence of the polymeric films on the surface of electrodes and the ability to control thickness of the films under different deposition conditions [28]. The materials containing electroactive moieties such as pyrrole (Py), thiophene, ethylenedioxythiophene, aniline, ortho-phenylenediamine, and phenolic-based compounds have been extensively used to establish chemosensors based on the concept of molecular imprinting [29]. Among these monomers, Py and its derivatives are of particular interest, owing to their high conductivity, availability of the initial monomers, stability in the oxidized state, and interesting redox properties. Various chemical and electrochemical approaches extended for synthesis of PPy [30,31,32], in which the polymer chains are formed during the polymerization of Py [31]. In some works, PPy undergoes overoxidation at positive potentials, an undesirable degradation process, causing loss of film conductivity because of ejection of dopant and formation of oxygen-containing groups such as carboxyl and carbonyl at the pyrrole units [33]. In contrast, chemical oxidation of PPy films leads to the formation of polarons, introduced as charge associated with the lattice distortion, which increases conductivity of electroactive PPy-based films [34].

It is obvious that the sensitivity of the MIP-based sensors is directly dependent on the number of effective imprinted sites embedded in the sensing interface. In order to increase this feature, graphene-based materials would be an appropriate choice in composing and supporting imprinted sensing films, due to their unique properties such as well-defined tubular nano-sized structure, functional surface, appropriate chemical stability, strong electrocatalytic activity, and excellent biocompatibility. Therefore, electrochemically reduced graphene oxides (ERGOs) were used in electrochemistry as substrates for functionalization [35] and deposition of MIPs [36]. Various technological applications of reduced graphene oxide (RGO) are well summarized in a reviewing source [37]. The ERGO provides a more effective surface area to be imprinted in the presence of a template and monomer, increasing the number of recognition sites on the sensor surface [35].

In this study, we employed a new subsequent electrochemical-chemical procedure to establish the molecularly imprinted sensing film with an appropriate behavior in the assay of melamine. The procedure is based on the electropolymerization of PPy at ERGO/GCE which was followed by an oxidative treatment in alkaline-peroxide solution in an optimized mixed solvent medium. Using ERGO provides a more effective surface area to make possible the formation of a higher number of sensing sites in an ERGO-covered MIP film. The abovementioned steps are preceded by a critical adsorption step in solution of template, in which melamine could be gathered onto the surface of ERGO-GCE via hydrogen bond interactions between the functional groups of RGO and the nitrogen groups in melamine molecules. This event increases the number of recognition sites in the whole sensing film, and leads to higher sensitivity in response toward analyte. Here, in the process of the imprinting of polymer, melamine would be trapped into the PPy film through a donor-acceptor interaction, in which PPy plays the role of electron acceptor and melamine with its nitrogen-rich structure acts as a donor during the electropolymerization on ERGO/GCE [22, 24]. For the first time, this combined procedure was used to found a highly sensitive impedimetric melamine sensor.

Experimental

Reagents and materials

All chemicals were of analytical grade if it is not stated otherwise. Hydrogen peroxide, acetic acid, melamine, and other reagents were purchased from Merck. Pyrrole was from Sigma (Steinheim, Germany). Acetate buffer solution (ABS, 0.1 M, pH = 5.2) was used. The stock solution of 0.01 M melamine was produced by dissolving 0.126 g (1 mmol) of melamine in 100 ml of 1:5 (v/v) acetonitrile/water. The used milk sample in this work was obtained from a local supermarket. All electrochemical impedance spectroscopy (EIS) measurements were conducted in 5.0 mM [Fe(CN)6]4−/3− + 0.1 M KCl. All aqueous solutions were prepared with double-distilled water.

Apparatus

Electrochemical measurements were performed using a μAutolab type III (Eco Chemie B.V.A) driven by GPES software (Eco Chemie) in conjunction with a conventional three-electrode system and a personal computer for data storage and processing. The conventional three-electrode system was applied with an Ag/AgCl (KClsat) electrode as a reference electrode and a platinum wire as the counter electrode. A glassy carbon electrode with a diameter of 2.0 mm coated with ERGO and modified with molecularly imprinted polymer (MIP/ERGO/GCE) was employed as the working electrode.

Fourier transformation infrared spectroscopy (FTIR) was recorded between 4000 and 450 cm−1 at a spectral resolution of 1 cm−1 on a Perkin-Elmer 1710 spectrophotometer using KBr pellets as reference at room temperature. Scanning electron microscope (SEM) images were achieved with scanning electron microanalyzer (TSCAN, Czech). A Metrohm (Model 780) pH meter with a combined glass pH electrode was used for pH measurements.

Electroanalytical measurements

The Faradaic impedance measurements in the solution of 5.0 mM of [Fe(CN)6]4−/3− + 0.1 M KCl as a suitable redox probe were conducted over the frequency range of 100 kHz to 0.1 Hz at the particular open circuit potential (OCP) with an ac perturbation of 5 mV. The EIS spectra of the modified electrode follow a modified Randles’ model in which the double-layer capacitance (C dl) is replaced by the constant phase element (CPE). In this circuit, the solution resistance (R s) arises from the finite conductance of the ions in bulk solution and this resistance is generally not affected by surface binding. The impedance results for a solid electrode/electrolyte interface often reveal a frequency dispersion that cannot be expressed by simple elements such as capacitance, resistance, and ideal Warburg impedance. The frequency dispersion is generally attributed to a “capacitance dispersion,” which is expressed in terms of the CPE or Q. Different reasons for capacitance distribution have been reported in the literature as heterogeneities (fractal geometry and dilatational symmetry), electrode porosity or surface roughness, variation of coating composition, slow adsorption reactions, and current distribution [38, 39]. The Warburg impedance (W), only of physical significance in Faradaic EIS, represents the delay arising from diffusion of the electroactive species to the electrode. It is only appreciable at low frequencies and is affected by convection. R ct is a manifestation of two effects: (i) the energy potential associated with the oxidation or reduction event at the electrode (i.e., overpotential) along with (ii) the energy barrier of the redox species reaching the electrode due to electrostatic repulsion or steric hindrance [40]. The sensor response was achieved from the change of charge transfer resistance (∆R) at the interface of electrode/electrolyte in solution of [Fe(CN)6]4−/3− before and after incubation of the sensor in the solution of different analyte concentrations.

Synthesis of ERGO

Before modification, the surface of GCE was polished with 0.05-μm alumina powders and was washed with distilled water for three times, subsequently. Then the electrode was ultrasonically cleaned with ethanol and distilled water for 5 min and dried at room temperature. Graphene oxide (GO) was synthesized using a modified Hummers and Offeman’s method [41]. Typically, 0.5 g NaNO3, 0.5 g graphite, and 23 ml H2SO4 were stirred together in an ice bath. In the following, 3 g KMnO4 was slowly added to the mixture to oxidize the graphite intercalation compound. The mixed solution stirred at 35 °C water bath for about 2 h to a thick paste was obtained. Next, 40 ml water was slowly added and the solution was stirred for 30 min whereas the temperature was increased to 95 °C. After the addition of 100 mL water and 3 ml of H2O2 30%, the color of the solution altered from dark brown to yellow; H2O2 reacted with the excessive amount of KMnO4. Finally, the obtained suspension was filtered, washed with 1 M HCl and double-distillated water, and vacuum-dried at 50 °C for 24 h to acquire GO.

For electrochemical conversion of GO to RGO, 2 μL of the homogeneous dispersed aqueous solution of GO (1 mg mL−1) was casted on the bare GCE and dried under ambient conditions. The electrochemical reduction of surface-confined GO was performed by 20 successive CV scannings from − 1.8 to 0.0 V with sweep rate of 0.1 V s−1 in 0.1 M of PBS, pH 6.8 [42]. Finally, the ERGO/GCE was washed with double-distillated water and dried at room temperature.

Fabrication of the MIP-based sensor

The melamine sensor was constructed by electropolymerization of a molecularly imprinted film on the surface of ERGO/GCE using cyclic voltammetry over the potential range of − 0.4 to 1.0 V vs. Ag/AgCl. The process was conducted during five successive cycles in the solution of 0.1 M acetate buffer, pH 5.2, containing 10 mM of Py and 2.0 mM of melamine. In the following, the modified electrode was immersed in the mixture of 1:5 acetonitrile/water including 1% (v/v) H2O2 and 0.1 M NaOH for 5 min at room temperature. In the next step, the MIP/ERGO/GCE was immersed into a pH 5.2 ABS for 5 min to eliminate the excessive base from the imprinted polymer layer. For comparison, a non-imprinted polymer/ERGO/GCE (NIP/ERGO/GCE) was also fabricated following the same procedure, but in the absence of the template. A schematic of the construction procedure of the proposed sensor is shown in Scheme 1.

Scheme 1
scheme 1

Schematic of sensor preparation

Results and discussion

Preparation and characterization of the electrodes

During electropolymerization of pyrrole in the presence of template, melamine was trapped in the polymer matrix. The mechanism of oxidation of pyrrole, as an irreversible process, was extensively studied [30]. The further chemical oxidation of the PPy film using hydrogen peroxide led to the improvement in conductivity and formation of cavity structures [34, 43]. In the inner wall of MIP cavities, the amine functional groups of melamine and pyrrole can interact through hydrogen bonding and π-π stacking. This interactions are directly affected by the orientation of interfacial chemical functions of cavities-template and the size conformity between imprinted cavity and template [43]. As a result, after the leaching process, the specific cavities toward template could be constructed.

As noted above, the electropolymerized film was fabricated on ERGO/GCE with five successive cycles in the buffer solution containing monomer and template. In detail, in the first cycle, an irreversible oxidation peak at 0.93 V emerged along with the anodic sweeping that was ascribed to the formation of amino cation radical (Fig. 1) [44]. In the next scans, the current of the anodic peak was drastically decreased, indicating that the polymeric film was deposited on the electrode surface. In other words, the decrease of the peak current by raising the scan number is ascribed to the continual formation of polymer films which hinders the Py monomer’s further access to the electrode surface [40, 45, 46].

Fig. 1
figure 1

Cyclic voltammograms for the electropolymerization of 10 mM PPy containing 2 mM melamine at ERGO/GCE in acetate buffer solution (pH 5.2). Scan rate, 50 mV s−1; number of scans, 5

It should be noted that conductivity of the electrodeposited PPy depends on the condition of the electropolymerizaton setup, as in acidic medium a more conductive PPy film could be formed, and therefore, during electropolymerization the peak-current gradually increased [47, 48] whiles in neutral medium, around pH 6–7, the conductivity of PPy is lower [40]. Inspired by some similar PPy-based MIP research works [40, 45], and because under this condition melamine can be trapped in polymer without itself being polymerized, we therefore selected the neutral medium for electropolymerization (pH = 6), in which in the next step melamine would be easily extracted from the polymer backbone [22]. Such descending behavior was also reported for other monomers aminothiophenol [49] and o-hydroxyphenol [50].

After the electropolymerization step, the modified electrode was immersed in the solution of 1% H2O2 and 0.1 M of NaOH in the mixed solvents acetonitrile/water (1:5). In this step, two event could occur; in one of them, melamine was removed from cavities during facilitated release processes influenced by the strongly basic medium in the presence of acetonitrile as a swelling agent. Another is the further oxidation of the PPy film resulting in the formation of polarons and bipolarons that could increase the conductivity of the prepared film [34] (Scheme 2). A polaron is a charge associated with a lattice distortion that establishes a conjugate system to improve electron transfer properties along the electropolymerized film. Due to the fact that in higher pHs the positively charged electron holes, which are main charge carriers in PPy, are neutralized by the loss of protons from the polymer (Scheme 2), therefore, in the next step we need to treat leached MIP with ABS (pH = 6) to induce formation of polarons [34]. In conclusion, the proposed coupled electrochemical-chemical method includes the electropolymerization step for the preparation of a polymeric film, followed by two subsequent chemical steps that generate polarons and bipolarons through a proton-coupled electron transfer (PCET) reaction [51]. There was no distinct difference between the obtained cyclic voltammogram in the absence and presence of melamine, signifying the fact that melamine does not participated in the occurred redox event at ERGO/GCE.

Scheme 2
scheme 2

a Electropolymerization of PPy and melamine trapping in the backbone of the polymer. b Leaching of melamine by acetonitrile as swelling agent, depletion of the hydrogen bonding in the alkaline medium and further oxidation of PPy in the presence of H2O2. c The increase in conductivity of the prepared MIP film by immersing in PBS (pH = 6)

Electrochemical verification of the imprinted sensor

Faradaic impedance spectroscopy that works based on evaluation of the electrode/electrolyte interface, in solution of a redox probe, was employed to monitor changes of charge transfer properties of the proposed sensor during different steps of the preparing and sensing procedures. Here, after incubation of MIP/ERGO/GCE in the melamine solution, the MIP cavities were occupied by melamine molecules and, consequently, the electron transfer capability of the redox probe was reduced. During this work, the change of signal was transduced by recording Faradaic impedance data, in the representation mode of the Nyquist plot, in solution of 5 mM [Fe(CN)6]4−/3− + 0.1 M KCl as redox probe.

Figure 2 shows the influence of the stepwise fabrication procedure on the CVs, recorded in the solution of 5 mM [Fe(CN)6]4−/3−. The magnitude of redox peaks respective to the Fe(II)/Fe(III) couple on the bare GCE (Fig. 2a) was smaller than that on the higher electroactive surface area electrode, ERGO/GCE (Fig. 2b). It should be noted during electrochemical reduction of the graphene oxide that it could not completely reduce and produce the ERGO with some part of oxygen-containing functional groups. The partially remained functional groups could increase the efficiency of electropolymerization of PPy via hydrogen-bonding [52].

Fig. 2
figure 2

Cyclic voltammograms in the solution of 5 mM [Fe(CN)6]4−/3− + 0.1 M KCl at a bare GCE, b ERGO/GCE, c ERGO/GCE after electropolymerization, d MIP/ERGO/GCE, and e MIP/GCE after interaction with 80 nM melamine. Potential scan range, − 0.2 to 0.8 V; scan rate, 50 mV s−1

After the electropolymerization of the polymer film on the ERGO/GCE surface, the current amplitude of redox peaks of the electrochemical probe decreases (Fig. 2c), confirming that the partly conductive film covered the nanostructure ERGO/GCE with higher effective surface area. After leaching the template by soaking the modified electrode in the solution of H2O2/NaOH, which was followed by incubation in the solution of ABS (pH = 5.2), the created polarons and the formed imprinted hollow cavities in the film that exposed a new path for redox probe molecules to arrive them on the under-layer platform led to an increase in the current amplitude of [Fe(CN)6]4−/3− again (Fig. 2d). Figure 2e shows the MIP/ERGO/GCE, after being incubated in melamine solution, in which the redox peak declined, indicating that the binding sites in cavities of MIP are occupied by melamine.

Moreover, the EIS was employed to explore the features of the imprinted sensor. An ideal Nyquist plot shows a semicircle with the diameter corresponding to the charge transfer resistance (R ct), attributed to the redox reaction performed at the interface of the electrode, and followed by a diagonal straight line corresponding to the impedance of the current due to diffusion from the solution to the interface (Warburg element, W) [24, 40, 52]. Figure 3 represents the results of EIS in solution of 5.0 mM [Fe(CN)6]4−/3− + 0.1 M KCl at bare GCE (a), ERGO/GCE (b), unleached MIP/ERGO/GCE (c), leached-MIP/ERGO/GCE (d), and MIP/ERGO/GCE after incubation in the solution of 80 nM of melamine (e). The ERGO/GCE exhibited an almost straight line, corresponding to a small heterogeneous charge transfer resistance at ERGO/GCE. After formation of the MIP film, the diameter of the semicircle was extensively increased (Fig. 3c). In comparison, at MIP/ERGO/GCE, the R ct was evidently decreased due to the extraction of melamine from the imprinted polymer cavities and production of vacant sites in the polymer body (Fig. 3d). After incubation of the MIP/ERGO/GCE in melamine, the R ct considerably increased, which could be attributed to the occupation of cavities in the polymer film (Fig. 3e). The redox peaks and R ct of the non-imprinted electrode in the electrochemical probe show no notable change after treatment with melamine, showing that the surface of the electrode was completely covered by a partially conductive film.

Fig. 3
figure 3

The Nyquist plot obtained for a bare GCE, b ERGO/GCE, c ERGO/GCE after electropolymerization, d MIP/ERGO/GCE, and e MIP/ERGO/GCE after interaction with 80 nM melamine in the presence of a 1:1 mixture of 5.0 mM [Fe(CN)6]4−/3− + 0.1 M KCl

FTIR was used to characterize the polymer separated from the electrode. The FTIR spectrum of separated PPy shown in Fig. 4 is in accordance to other reported literature [53, 54]. The characteristic peaks at 3412, 1559, 1369, and 1219 cm−1 in Fig. 4 confirm the presence of PPy. PPy, at 3412 cm−1, shows a strong broad absorption band corresponding to the N-H stretching vibrations. The peaks at about 1369 and 1219 cm−1 reflects the C-N stretching vibration in the ring and CN in-plane deformation modes, respectively. The skeletal vibrations at 1559 cm−1 and the strong peak at 821 cm−1 characteristic of a five-membered aromatic ring were present [53].

Fig. 4
figure 4

FTIR spectrum of molecularly imprinted PPy films

The surface morphologies of ERGO/GCE and MIP/ERGO/GCE were examined with a scanning electronic microscope (SEM). The SEM image of ERGO (Fig. 5a) shows a typical flaky and crumpled graphite sheet structure. In the case of MIP/ERGO/GCE, a generally porous structure with the spongy sites signifies the successful formation of the MIP (Fig. 5b).

Fig. 5
figure 5

SEM images of a ERGO and b imprinted PPy/ERGO films

Optimization of analytical conditions

The parameters such as the concentration of template and monomer, electropolymerization cycles, applied potential, scan rate, extraction method, and incubation time control the thickness and physical stability of the polymer film formed at GCE/ERGO. Therefore, the effects of these parameters were considered by EIS and the optimized condition was employed, same as those expressed during experimental measurements. The change in charge transfer resistance (∆R) was used before and after the sensor was dipped in the solution of 80 nM of melamine.

Effect of solvent and additives

Many methods can be employed to extract templates from the imprinting polymers. Extraction with a solvent or a mixture of solvents is one of the most common routes. Through the experiments, after some investigations, we found that the selected solvent can deeply influence the polymer layer and swell it, facilitating the extraction processes and extruding simply the trapped melamine template [22]. In this work, different ratios of acetonitrile/water and several NaOH concentrations in the absence and presence of H2O2 were used to remove the template molecule from cavities of the imprinted layer. The results showed that the solution containing 1:5 acetonitrile/water + 0.1 M NaOH and 1% (v/v) H2O2 provides the best performance in extracting melamine. The acetonitrile can induce swelling in the PPy film [30], and NaOH leads to the depletion of hydrogen-bonding between nitrogen groups in melamine and the PPy film at the inner interface of cavities and facilities the extrusion of melamine (Scheme 2). The addition of H2O2 in the solution oxidizes amine groups in interfacial cavity surfaces of the PPy film and causes formation of polaron and bipolaron in the bulk of the swelled polymer. Consequently, the latter event can accelerate the electron transfer along the partially conductive polymer film. To explore the role of this events, the process was repeated in solution without any oxidizing and alkaline agents, separately, which demonstrated that, in the absence of NaOH, the template partially leached and also in the absence of H2O2 the conductivity of polymer is slight, designating the critical roles of proposed additives in the leaching step.

Effect of monomer concentration

The concentration of monomer, during electropolymerization processes, has an important influence on the response of the proposed sensor. To explore the effect of monomer concentration on the analytical response of both MIP and NIP, electropolymerization was conducted in the solutions with constant concentration of melamine and varying pyrrole concentrations in the range of 4 to 14 mM and by cycling potential between − 0.4 V and + 1.0. Figure 6a shows the changes of charge transfer resistance (ΔR ct) for MIP- and NIP-modified electrodes in the presence of 80 nM of melamine as a function of different concentrations of monomer. Contrary to GCE/ERGO/MIP which exhibited no significance change, the GCE/ERGO/MIP displayed a remarkable higher signal that altered and passed from a maximum around 10 mM of monomer concentration. This observed dependence should be proportional to the thickness of the deposited recognition layer, which is directly in accordance with the higher number of cavities in the electropolymerized layer. However, the passing R ct from a peak designates this fact that an opposite balance is dominated between the number of cavities and thickness of film. As result, the optimum monomer concentration under these conditions was about 10 mM.

Fig. 6
figure 6

a Effect of the monomer concentration during polymerization on the performance of MIP/ERGO/GCE (filled square) and NIP/ERGO/GCE (filled triangle). b Effect of the template concentration on MIP/ERGO/GCE response. c Effect of the number of cycles to MIP/ERGO/GCE (filled square) and NIP/ERGO/GCE response (filled triangle). d Effect of incubation time on MIP/ERGO/GCE response. The response was measured through EIS of a 1:1 mixture of 5.0 mM [Fe(CN)6]4−/3− in 0.1 M KCl solution after immersion of the electrode in an 80 nM melamine solution for 4 min

Effect of template concentration

In the further experiments, we considered the effect of template concentration, in the electropolymerization solution, on the response of the melamine sensor. Figure 6b shows the plot of ΔR ct vs. the template concentration over the range of 0.5–3.0 mM. As it is shown, the response of the MIP/ERGO/GCE to melamine rises with the increase of the template concentration between 0.5 and 2.0 mM and then displays a small decrease above 2.0 mM of the template. Therefore, the optimum template concentration was chosen as 2.0 mM.

Effect of number of cycles, range of applied potential, and scan rate

The number cycles during electropolymerization processes, considering the fact that it could directly affect the thickness and density of cavity sizes, could be important as a critical parameter and was found to impress the sensitivity and linearity of the sensor. The MIP electrode produced at the lower number of cycles exhibited a more favorable analytical performance (Fig. 6c). The higher number of cycles leads to more extensive electropolymerization and thicker sensing layer with larger R ct, which may attenuate the capability of the sensing layer to read out the small change of charge transfer properties caused by the lower concentration of analyte. In addition, the higher number of cycle could yield a sensing film with less accessible imprinted sites. The highest ΔR ct between the MIP and NIP electrodes for melamine was obtained by applying 5 cycles during electropolymerization. Thus, the optimum polymerization cycles were found to be five.

During this work, the potential range from − 0.4 to 1.0 V were used to carry out electropolymerization. The upper side potential was chosen as 1.0 V, because the anodic peak current was not observed at the lower positive potential was ca. 0.9 V. On the other side, when the positive potential of 1.1 V or higher values were employed, the oxidation peak became variable, demonstrating a suitable evidence for the formation of the overoxidaized polymer.

During electropolymerization, if the scan rate was lower, the electrodeposited PPy film would be thicker; it is known that the molecular template would be entrapped in the polymer firmly and it is difficult to be extracted. Contrarily, in extremely higher sweep rates, the formed film would be relatively porous and thin, which is not desirable for subsequent use [24]. Herein, in order to counteract the problem, we designed the scan rate as moderately high. The optimized scan rate was found to be 50 mV s−1.

Effect of incubation time

The time of incubation for the sensor in the target solution has a critical importance for the establishment of new molecularly imprinted sensors. Thus, in order to determine the effect of the incubation time on the impedimetric detection of melamine, after the template molecules were removed from recognition sites of the modified electrode, it was incubated with stirring in the solution of 80 nM of melamine for different times in the range of 1 to 6 min, and the corresponding Nyquist plots were recorded in the redox probe (Fig. 6d). It was found that the electron transfer resistance increased rapidly up to 4 min and then leveled off, showing that the amount of absorbed melamine in the recognition sites of the PPy film increased as time was increased. After 4 min, the signal remained almost constant, implying that the adsorption equilibrium was reached under these experimental conditions. Consequently, an incubation time of 4 min was selected for all subsequent measurements.

Analytical performance

Calibration curve of the imprinted sensor

To evaluate analytical performance of the sensor under the optimal conditions, the Faradaic impedance signal in 5 mM [Fe(CN)6]4−/3− + 0.1 M KCl, after incubation of the sensor in a series of the standard solutions of melamine, were recorded by the MIP/ERGO/GCE. As it can be seen from Fig. 7a, the impedance values (R ct) increased with the increasing melamine concentrations, which can be interpreted by rebinding of melamine on the imprinted PPy layer, inhibiting the electron transfer of redox probes onto the electrode surface. The changes of electron transfer resistance (ΔR ct = R ct2 − R ct1, where R ct1 and R ct2 are resistances obtained in the absence and presence of melamine, respectively) were plotted as a function of melamine concentration and show a linear range from 4.0 to 240 nM (Fig. 7b).

Fig. 7
figure 7

a EIS of melamine (4 to 240 nM) on the MIP/ERGO/GCE and b calibration curve. The other conditions are the same as in Fig. 5

The effect of indeterminate errors on the predicted slope and intercept as a useful demonstration of uncertainty was considered [55, 56]. The standard deviations of the slope and intercept were calculated to be 0.285 and 13.26, respectively. The linear regression equation is ∆R(Ω) = (9.2 ± 0.3) C (nM) + (171 ± 13) (r 2 = 0.9972). The detection limit was calculated to be 0.83 nM (based on the ratio of signal to noise, S/N = 3).

As demonstrated in Table 1, the results of the imprinted PPy/ERGO electrode for measuring melamine are compared with other published electrochemical methods. The results indicate that the proposed sensor presents a wider linear range and lower limit of detection compared to those reported for some other electrochemical methods.

Table 1 Comparison of the fabricated sensor for melamine detection with other electrochemical methods

The selectivity, in this work, was evaluated by comparing impedimetric responses of the proposed sensor in the presence of melamine with those obtained by some possible interfering substances like glycine, phenylalanine, tryptophan, histidine, tyrosine, and ascorbic acid. The selectivity coefficient is K = ∆R r/∆R s, where ∆R r is the equivalent relative charge transfer resistance change of 0.8 μM interfering material solution and ∆R s is the relative charge transfer resistance change of sample solution containing 80 nM melamine. The response of the modified electrode toward melamine was higher than that for all nominated interferences (Fig. 8), which disclosed that the imprinted film has special recognition ability toward melamine molecules owing to the matched inner wall-functionalized cavities and the shape of melamine during the electropolymerization process, implying that the fabricated sensor might find further applications in the detection of melamine from complex samples without further separations.

Fig. 8
figure 8

Selective adsorption of the imprinted sensor to 80 nM melamine and 0.8 μM of each interference, respectively (the numbers on the columns are K = ΔRr/ΔRs)

Reproducibility and stability of the imprinted electrode

The reproducibility of the MIP/ERGO/GCE was evaluated in solution of 80 nM of melamine. The relative impedance change of melamine was determined with five electrodes which were produced under the same conditions. The response showed a relative standard deviation (RSD) of 4.1%, confirming that the results are reproducible. The repeatability of the sensor was also studied for 80 nM melamine, and the calculated RSD was about 3.1% (n = 5). The original response of the electrode retained 84.68%, when the electrode was kept in air for 30 days at room temperature. These results confirm that the electrode has acceptable reproducibility and stability.

Real sample analysis

To examine the applicability of the proposed MIP sensor, it was utilized to determine melamine in liquid milk bought from supermarkets. Because the existing milk in the market was free of melamine, the samples were directly spiked by certain amounts of melamine standard solution. The RSD of the results acquired by the proposed sensor ranged from 1.2 to 3.1%, and the recovery ranged from 98.3 to 103.8% (Table 2), suggesting that impedimetric determination of melamine using melamine-imprinted PPy/ERGO/GCE was effective and sensitive. Moreover, the obtained results demonstrated that the proposed method can be successfully used in the assay of melamine in milk samples.

Table 2 Determination of melamine in milk sample (n = 3)

Conclusion

In this work, an impedimetric sensor based on the melamine-imprinted polypyrrole deposited on ERGO/GCE was established. As mentioned above, the ERGO was utilized to amplify the electrochemical signal. A simple and inexpensive coupled electrochemical-chemical procedure was used for the construction of the sensing polymer. Using H2O2/NaOH solution in the extraction step, in addition to removal of melamine, conductivity was also increased through formation of positively charged species referred to as polaron and bipolaron. The designed electrochemical sensor exhibited good sensitivity, suitable selectivity, good reproducibility, and repeatability. The modified electrode provides a low detection limit and fast response for the detection of melamine. The proposed low-cost chemical sensor could find applications in the measurement of melamine in milk, exhibiting its capability as an accurate and fast sensor.