1 Introduction

In nature, there are a lot of chemicals that over a limit of its amount can be harmful to all of their living organisms such as heavy metals. The environmental pollution by heavy metals, especially in water, is a severe threat to the environment and public health since heavy metal ions are toxic and indissoluble and tend to accumulate in organisms [1]. One of the most studied heavy metals that cause serious health concern is mercury (II) ion [2]. Bacteria that live in aquatic sediments can convert mercury ions into methyl mercury, along with accumulating through the food chain in the human body and cause many brain diseases, and kidneys [3]. Mercury ion easily passes through the skin, respiratory, and gastrointestinal tissues, and damages DNA causing many problems, including permanent damage to the central nervous system [4, 5]. In recent years, extensive research has been done to develop new nanoparticles [6,7,8,9,10,11,12]. However, the design of a sensitive and selective method is important for measuring the amount of mercury (II) ion. Techniques such as polarography, Inductively coupled plasma mass spectrometry (ICP-MS), atomic absorption/emission spectroscopy, and Auger electron spectroscopy which were used for determining Hg require sophisticated instrumentation and/or complicated sample preparation that limits their applications [13,14,15]. Fluorescence nanoparticles have been highly attracted considerable attention for their specific abilities, and this is the reason for many fields such as chemistry, biology, and so on which myriad applications have been defined for them [16,17,18]. Semiconductor quantum dots are well-developed fluorescence nanoparticles compounds, but their applications are limited because of the release of heavy metals such as lead and cadmium, which cause environmental contamination [19]. Compounds such as silver nanoparticles and gold nanoparticles, which have fluorescence properties, have been studied on the basis of their excellent photostability and low toxicity [20]. However, the synthesis of these fluorescent nanoparticles requires expensive materials such as metal salts, DNA, proteins, peptides, thiol ligands, which limit their extensive preparation and further applications [21]. Therefore, the development of highly fluorescent nanoparticles with good photostability, low toxicity, and easy-to-synthesize is very tempting for researchers. Carbon quantum dots nanoparticles have gained great attention due to their easy fabrication, high quantum yield, low cost, low toxicity, excellent biocompatibility, and good photostability [22]. By the way, carbon quantum dots have been widely used in cell labeling, bio-imaging, and the identification of various compounds [23,24,25,26], and also has been specifically used to detect H2O2 [27, 28] and mercury (II) [29, 30]. Although CQDs that is introduced as a probe for different compounds may be very effective and useful, the design of new CQDs that can overcome constraints, as well as high fluorescence stability carbon nanoparticles, is required to fit the application fields.

The PBSN-CQDs with four heteroatoms were synthesized for the first time via hydrothermal method using the simple hydrothermal method and low-cost materials such as phosphoric acid, thiourea, glucose, and boric acid. The synthesized PBSN-CQDs were characterized by XRD, TEM, fluorescence spectrophotometer, UV–Vis, and FT-IR. PBSN-CQDs are introduced as probe for Hg2+ with different strategies which are associated with fluorescence "off" state. However, the mechanism for detecting mercury ions is different because PBSN-CQDs + Fe2+ is used as a probe for the detection of Hg2+. Upon the addition of Hg2+, Fe2+ was oxidized to Fe3+ and Hg2+ convert to Hg0 in the acidic condition which triggers quenching. Nevertheless, it is possible to relate the amount of fluorescence quenching to the concentration of mercury ion. Furthermore, the specificity response to Hg2+, the influence of other compounds on the PBSN-CQDs response was studied. The obtained functional PBSN-CQDs displayed enhanced sensitive response toward Hg2+ in 25.0–1500.0 μM concentration range with 5 min response time; additionally, its application for determining Hg2+ in the real sample was investigated. Futuristically, it will play an important role in enriching the detection methods for other harmful material and can be contributing to the development of the doped PBSN-CQD-based fluorescence probe (Scheme 1).

Scheme 1
figure 1

Schematic illustration of the detection process for Hg2+

2 Experimental section

2.1 Materials

Phosphoric acid, thiourea, boric acid, and glucose were purchased from Sigma-Aldrich. Potassium dihydrogen phosphate (KH2PO4) and dipotassium hydrogen phosphate trihydrate (K2HPO4 3H2O) were acquired from Merck for preparation of PB buffer solution. Other chemical compounds such as nitrate salt of silver (I), Manganese (II), lead (II), magnesium (II), manganese (II), iron (III), iron (II), cobalt (II), cadmium (II) and biological compounds—catechol, nitrite, glucose, l-cysteine, and hydrogen peroxide—were purchased from Merck Co. All chemicals were used with high purity and without further purification.

2.2 Characterization

The fluorescence spectra were recorded by an LS45 spectrometer (PerkinElmer, US). The fluorescence emission spectra of PBSN-CQDs were recorded from 460 to 600 nm with excitation wavelength at 450 nm at room temperature. The Cary 100 spectrometer was used for studying the optical properties. The transmission electron microscope (TEM) was used for measurement of particles size and obtained on a JEOL-JEM 2010 Transmission Electron Microscope (Japan) operated at 200 kV. AVATAR 370-IR spectrometer (Thermo Nicolet, USA) was used for FT-IR spectra recording in the wavenumber range 400–4000 cm−1. X-ray powder diffraction (XRD) results were collected with a Rigaku Ultima IV XRD diffractometer (Rigaku, Japan) equipped with graphite monochromatized high-intensity Cu-Kα radiation (λ = 1.5417 Å).

2.3 Hydrothermal synthesis of PBSN-CQDs

The PBSN-CQDs was synthesized by one-pot hydrothermal method. Briefly, 0.2 g of glucose, 0.2 g of boric acid, 0.2 g of thiourea, and 5 ml of phosphoric acid in 20 ml distilled water were dissolved. Then, the solution was transferred in the Teflon-line stainless steel autoclave at 200 °C for 5 h until the reaction was completed. After the autoclave was cooled to ambient temperature, a dark brown solution was obtained which was centrifuged at (10,000 rpm) for 10 min to remove the large and agglomerate particles. The suspension was filtered for removing the large dots. A brownish red PBSN-CQDs solution was finally obtained.

2.4 Detection of Hg2+ ion

At first, 100 μL of Fe2+ (0.01 M) were added to 50 μg of PBSN-CQDs and diluted up to 2 mL by a phosphate buffer (PBS, 0.1 M, pH 4). Then, the resulted solution was incubated at 25 °C. Next, different concentrations of Hg2+ ion (25.0–1500.0 μM) were added after the fluorescence stability was obtained at 5 min. The fluorescence spectrum is recorded under excitation at 450 nm. In the range of 25.0 µM to 1500.0 µM, the calibration plot is linear, and LOD was calculated with the signal to noise ratio (S/N = 3). For PBSN-CQDs selectivity, 150.0 µM of potential interferences such as metal ions (that are similar to Hg2+ ion) and biochemical compounds were added and examined.

2.5 Interference for detection of Hg2+ ion

The fluorescence response in the region of 530 nm of the mixture of PNBS-CQDs + Fe2+ (50 µg PNBS-CQDs and 100 μL × 0.01 M of Fe2+) in a solution containing 100 µM of mercury (II) and 2.0 mM of other compounds such as silver (I), lead (II), magnesium (II), manganese (II), iron (III), cobalt (II), cadmium (II), phenol, catechol, NO2, glucose, melamine, urea, thiourea, and L-cysteine is recorded separately in pH 4 and 25 °C.

2.6 Detection of Hg2+ion in drinking water

For evaluating the PBSN-CQDs + Fe2+-based probe for Hg2+ detection in a real system, the performance of the developed method for real water sample analysis was examined by tap water and River water samples. The tap water samples were filtered through a 0.20 μm filtered membrane and then centrifuged at 10,000 rpm for 20 min. The resultant water samples were spiked with Hg2+ at different concentration and then analyzed with the proposed method.

3 Results and discussion

3.1 Characterization of PBSN-CQDs

Carbon quantum dots containing heteroatoms such as nitrogen, sulfur, boron, and phosphorus were prepared using a common and well-known hydrothermal method. The chemicals material that used for this structure was thiourea, boric acid, boron, phosphoric acid, and glucose. For the study of the particle size and morphology of the PBSN-CQDs, transmission electron microscopy (TEM) analysis was carried out. As shown in Fig. 1a, two results are obtained: first, the structure is spherical and second, the particle size is approximately uniformly distributed, and the particle diameter is about 3 nm between about 30 nanoparticles that is shown in Fig. 1a. The next analysis is the XRD spectrum which is shown in Fig. 1b. Additionally, the broad peak at 2θ = 24.3 attributing to (002) peak of graphite indicates that CQDs were successfully synthesized, which relates to the structure of carbon amorphous and other materials such as oxygen and heteroatoms in this structure also being in good agreement with that described in literature [31]. To verify the functional groups on the surface of the PBSN-CQDs structure, FT-IR has been used. According to Fig. 1c, the index peaks found in 3420 cm−1, which correspond to –OH. The peak 3213 cm−1 corresponds to –NH, and 2920 cm−1 corresponds to –C=C–H. The peaks related to C–H and –SH are in the region of 2850 and 2350 cm−1, respectively. The peaks at 1667 cm−1 correspond to –C=O. The peaks at 1498 cm−1 and 1454 cm−1 corresponds to –C=C. The peaks which are seen at 1248 cm−1 relate to C–O. The peak of 1105 cm−1 corresponds to –CN, as well as the peaks seen in 515 to 759 cm−1 –CS [32]. The peak of P–O–H and P=O are seen in 360 cm−1 and 1348 cm−1, respectively [33,34,35]. And finally, to show the presence of a boron atom, it is sufficient to know the spectrum of 1405 cm−1 associated with the asymmetric vibrations of B–O, which indicates the presence of boron in the structure of PBSN-CQDs [36].

Fig. 1
figure 1

Characterization of PBSN-CQDs. a TEM micrograph of PBSN-CQDs. b XRD pattern of PBSN-CQDs. c UV–Vis absorption of PBSN-CQDs (curve A) and CQDs (curve B). d FT-IR transmitted spectra of PBSN-CQDs

3.2 Investigation of optical properties

For investigating the PBSN-CQDs optical properties, the UV/Vis absorption spectra in an aqueous solution were studied. As shown in Fig. 1d, curve A an absorption band in the 285 nm region is related to the transition of π–π * in the C=C band [32]. Two other absorption spectra in the area of 275 and 336 nm can be seen related to the transition of n–σ* in the C=O band and the surface defect is caused by heteroatoms such as nitrogen, phosphorus, and carbon [37, 38]. In the region of 302 and 370 nm, there are two absorption bands that are correspond to electron transfer of n–π* in the B–C bond [39]. Compared to CQDs (Fig. 1d curve B) which have no heteroatom, the absorption peak can be seen only in the region of 260 nm that is related to the transfer of π–π* in the C=C band and the transfer of nσ * in the C=O band. However, the fluorescence spectra were investigated at the different excitation wavelength (320 to 490 nm). As shown in Fig. 2a, at 320 nm to 370 nm excitation wavelength emission is broad, and there is no sharp and usable spectrum. With further increase in the excitation wavelength (370 to 490 nm), the emission intensity also increased. So, the excitation spectrum for PBSN-CQDs at 450 nm and the emission spectrum at 530 nm are studied [40].

Fig. 2
figure 2

a Fluorescence spectrum of the as-synthesized PBSN-CQDs at different excitation wavelength. b Fluorescence stability of PBSN-CQDs in different pH

3.3 Fluorescence stability of PBSN-CQDs

Since fluorescence is emitted from the surface of PBSN-CQDs as the optical properties, the study of the effect of different pH on the intensity of fluorescence is undoubtedly essential. Anyway, to find the best pH, the amount of 50 µg of PBSN-CQDs was added to 2 ml of different pH value, and the fluorescence intensities were recorded. As shown in Fig. 2b, the fluorescence intensity is the lowest in acidic pHs, and the fluorescence intensity increases as well until the pH ranges 6–8. Also, in this range of pH, the amount of fluorescence intensity is constant without any obvious change in fluorescence intensity. The reason for the stability of fluorescence intensity during changing the pH is that the PNBS-CQDs are saturated with carbonyl and hydroxyl groups. Then, these functional groups are protected by acidic solutions when the mixture is in acidic environments, causing aggregation of PNBS-CQDs and resulting in the fluorescence quenching [41].

3.4 Response mechanism for detecting mercury (II) ions

The synthesized PNBS-CQDs was used for determining mercury ions in aqueous medium. Based on the specific mechanism that is described, this probe is designed to detect mercury (II) ions. By the way, the electrons leaped into the excited state from the lowest energy level by excited and the electrons in this place are unstable so the electrons return to its ground state. The transmission of electrons leads to efficient energy transfer, so it produces the fluorescence. After adding of iron (II) ion to PNBS-CQDs, no significant change in the fluorescence intensity was observed. However, with the adding of mercury (II) ions to the PNBS-CQDs + Fe2+, the fluorescence intensity was changed that is due to the production of mercury (Hgc0) according to Eq. (1, 2) [42].

$${\text{Hg}}^{2 + } + {\text{Fe}}^{2 + } \to{\text{Hg}}^{ + } + {\text{Fe}}^{3 + }$$
(1)
$${\text{Hg}}^{ + } + {\text{Fe}}^{2 + }\to {\text{Hg}}^{0} + {\text{Fe}}^{3 + }$$
(2)

When mercury (Hgc0) are produced, accordingly, the latter provided the unfilled orbital for the electrons of PNBS-CQDs in the excited state, which resulted in a decrease or “quenching” of the fluorescence intensity. By this quenching effect, described above, and the oxidation principle, a quenching fluorescent probe for determination of Hg2+ ion was designed. According to Fig. 3, in the presence of iron (II), iron (III), and mercury (II) ions alone do not change the intensity of fluorescence. So, when PNBS-CQDs are present with iron (II) ion, by addition of mercury (II) ion, the fluorescence intensity is reduced, and it can be said that the design of a fluorescence probe for mercury (II) ion is logical according to the previous statement.

Fig. 3
figure 3

Fluorescence response of PNBS-CQDs in different times in the presence of Fe2+, Fe3+, and Hg2+ ions and Fe2+ + Hg2+

3.5 Optimize conditions for detection of Hg2+ ion

The parameters to be optimized for mercury ion detection are pH and reaction time. As regards, the reaction of iron (II) ions and mercury (II) ions depends on the pH value, and in view of the fact that, at alkaline pH, metal ions are converted to metal hydroxide form; therefore, for finding optimum value, pH was investigated in the range of 2 to 6 in presence and in the absence of mercury (II) ion. The optimum value for pH is equal to 4. The reaction time is another critical parameter that shows the interaction between PNBS-CQDs, iron (II) ion, and mercury (II) ion. The fluorescence intensity decreases with increasing time and the maximum decrease occurs up to 5 min and after this time the fluorescence intensity did not change. This process of quenching the fluorescence intensity indicates that the reaction described in Eqs. (1) and (2) between mercury and iron (II) ions causes the quenching and the reaction continues up to 5 min.

3.6 Fluorescence determination of Hg2+ ion

Under the optimal conditions described above, the fluorescence response of the PNBS-CQDs + Fe2+ to different concentrations of mercury (II) is evaluated, and its sensitivity is measured. In Fig. 4a, the fluorescence emission intensity at 530 nm is decreased by increasing the amount of mercury (II) ion. The amount of fluorescence quenching is shown by the ratio of F/F0 (F0 and F was the fluorescence intensity of PNBS-CQDs + Fe2+ sensing system at 530 nm in the absence and presence of Hg2+, respectively) (Fig. 4b). This ratio of F/F0 has a linear relationship with the concentration of mercury (II) ions in the range of 25 μM to 1500 μM with a correlation coefficient (R2) of 0.99, and according to S/N = 3, the LOD is 5.0 µM and LOQ is 16.5 µM. To better demonstrate the efficiency of this probe in measuring mercury (II) ions, a comparison table with previous work has been reported (Table 1). As it can be seen, the method developed in many aspects including the linear range and detection limit is better than the methods reported so far. Besides, this method is economical and easy to operate, better than other techniques, because there are no dangerous substances and harmful organic substances during the process and its preparation is very convenient [29, 30, 43,44,45].

Fig. 4
figure 4

a Fluorescent emission spectra of the PBSN-CQDs + Fe2+ upon addition of different concentrations of Hg2+ within the range of 25–1500 µM (pH 4), and b dependence of F/F0 on the concentration of Hg2+ within the range of 25–1500 µM

Table 1 Comparison of analytical features of Hg2+ detection among reported assays

3.7 The selectivity of PNBS-CQDs + Fe2+ toward different compounds

Selectivity is a significant parameter in evaluating the performance of fluorescence probe. Considering the unique mechanism of PNBS-CQDs + Fe2+ in the presence of Hg2+, therefore, the selectivity was studied in the presence of other metal ions that may be existing in drinking water, including silver (I), manganese (II), lead (II), magnesium (II), manganese (II), iron (III), iron (II), cobalt (II), mercury(II), and cadmium (II) 150 µM concentration adding to PNBS-CQDs + Fe2+, and compared the fluorescence intensity with the original fluorescence. It can be seen that fluorescence intensity changes only with the presence of mercury (II) ion that are significant, but for other materials, the fluorescence intensity changes are neglected. This means that PNBS-CQDs + Fe2+ are optionally used in an aqueous solution for determination of Hg2+ (Fig. 5).

Fig. 5
figure 5

Fluorescence response of PNBS-CQDs + Fe2+ solution toward different metals or biological compounds (excitation at 450 nm;( [M] 1000 µM, pH 4)

3.8 The quenching effect

Hg2+ converts to Hg0 in the presence of Fe2+, which results in a quenching in the fluorescence intensity of PNBS-CQDs + Fe2+, which can be calculated by the Stern–Volmer Equation: (3)

$${\text{F}}/{\text{F}}_{0} = {\text{K}}_{{{\text{sv}}}} + \left[ {\text{Q}} \right] + {1}$$
(3)

F0 and F was the fluorescence intensity of PNBS-CQDs + Fe2+ sensing system at 530 nm in the absence and presence of Hg2+, respectively. [Q] is the concentration of Hg2+ and KSV is the Stern–Volmer quenching constant, which is related to the quenching efficiency [46, 47]. As shown in Fig.  6, in the range of 25 to 1500 μM, a linear calibration plot between fluorescence intensity change rates (F0/F) − 1 and mercury (II) concentration with a correlation coefficient of R2 = 0.97 is observed. The quenching efficiency (KSV) in the range of 25–1500 μM was 0.6 × 103 L mol−1.

Fig. 6
figure 6

Stern–Volmer plots representing the quenching effects of Hg2+ on the fluorescence emission of CQDs at 4450 nm. The concentration of Hg2+ was in the range of 25.0–1500.0 μM

3.9 Interferences

The effects of potential interferences such as metal ions and biochemical compounds on Hg2+ (20 µM) detection were investigated. The experimental procedures were as follows: various kinds of interferences were added by firstly testing a 100-fold interference with Hg2+; if interference occurred, the concentration of interfering was gradually reduced until the interference ceased. The criterion for interference was that signal change was within 5%. As shown in Fig. 7, the changed fluorescent intensity of PNBS-CQDs + Fe2+ probe by 20 µM of Hg2+ was not affected by most of the 100-fold excess of ions and biochemical compounds.

Fig. 7
figure 7

Interference of metal ions and other compounds with Hg2+ measurements by PNBS-CQDs + Fe2+ probe (pH 4). Blue bars represent the addition of single compounds; red bars represent the mixture of hydrogen peroxide with other compounds

3.10 Detection in real samples

The practical application of the PNBS-CQDs + Fe2+ probe in real samples has also been studied. The performance of the PNBS-CQDs + Fe2+ fluorescence probe for the detection of Hg2+ in real water sample analysis was also investigated by tap water. After the initial preparation of tap water, the mercury ion was determined under optimum conditions (phosphate buffer with pH 4). At first, the water samples were spiked with different concentration of Hg2+ and then analyzed with the proposed method (Table 2). Therefore, the probe can be used effectively to analyze mercury (II) ions in the real sample with different matrices.

Table 2 Determination of concentration amounts of Hg2+ in tap water (n = 5)

4 Conclusion

In summary, the water-soluble CDs doped with P, S, B, and N were synthesized for the first time via hydrothermal method. The obtained PNBS-CQDs showed spherical morphology with an average size of 2.5 nm. The PNBS-CQDs + Fe2+ and their resultant excitation-independent fluorescence were employed for selective and sensitive detection of Hg2+. The as-prepared CDs showed excellent detection capability toward Hg2+ over a wide concentration range of 25–1500 μM. It is believed that the fast and selective detection capability for Hg2+ by the probe, and also the method developed in many aspects including the linear range and detection limit is better than the methods reported so far. This work would open a new opportunity for the wide application of PNBS-CQDs in the various probe.