1 Introduction

4-Nitrophenol (4NP), an aromatic phenolic compound, is an inevitable intermediate in manufacturing numerous organic products [1]. The exploitation of 4NP for the massive production of drugs (paracetamol) and pesticides (parathion, fenitrothion), however, has unwanted consequences of its continuous dissemination in aquatic and soil environments. 4NP, one of the perilous chemical pollutants, persists in the environment for a long period due to its high stability, extreme water solubility, acute toxicity, and poor biodegradability [2]. High-level ingestion of 4NP can interfere with hemoglobin in human blood and turn it into methemoglobin (the condition called “methemoglobinemia”). The symptoms of the disease may include headache, fatigue, dizziness, nausea, and cyanosis (blue-colored skin and lips). Moreover, it can irritate and burn human skin and eyes with possible eye damage. Its continuous and repeated exposure can also affect the respiratory and nervous systems [3, 4]. Unless treated with care and disposed of appropriately, 4NP would cause a foul environment. As per the Environmental Protection Agency (EPA) guidelines, the maximum acceptable level of 4NP in drinking water is less than 0.43 μM [3]. Hence, it is crucial to develop a rational and efficient analytical technique for rapidly quantifying trace 4NP in the environment, especially in water bodies.

The analytical techniques currently available for quantification of 4NP in water include those based on spectrophotometry, electrochemical, capillary electrophoresis, high-performance liquid chromatography (HPLC), and gas chromatography [5,6,7,8,9]. These methods, however, frequently encounter challenges such as electrode instability, time-consuming preparation procedures, expensive and sophisticated instrumentation, and difficulties in rapid assay. In contrast, fluorimetry-based sensing offers several benefits such as superior sensitivity, selectivity, operational simplicity, real-time/in-situ detection, minimal sample requirement, and high reproducibility.

Carbon nanomaterials have been widely researched in the past few years due to their interesting properties [10,11,12,13,14]. Carbon dots (CDs) are novel nanomaterials with sizes typically less than 10 nm. Owing to their biocompatibility, ease of synthesis, low toxicity, diverse surface functionalization, tunable photoluminescence, uncompromising chemical stability, and photostability, CDs have garnered extensive attention in the prospective applications of optoelectronics, biomedicine, bioimaging, sensing, and catalysis [15,16,17,18]. Besides, their fascinating fluorescence properties have enabled them to be used as fluorescent probes for detecting various substances, including metal ions and pollutants in the environment [19]. The fluorescence characteristics of CDs are affected by several factors, including the carbonaceous core structure, dopants, impurities, surface functional groups, and organic fluorophores produced as a byproduct of synthesis [20]. The chemical structure of CDs can be altered by choice of carbon precursor and synthesis method. CDs have been synthesized from a variety of precursors via laser ablation, chemical vapor deposition, hydrothermal, and microwave-assisted techniques [21,22,23,24].

In hydrothermal synthesis, the precursors for CDs could be graphite or graphene-like polycyclic aromatic hydrocarbons, organic acids, polysaccharides, organic wastes, biopolymers, and other natural carbon sources [25]. Different precursors could lead the synthesized CDs to have different core structures with either pure sp2-hybridized carbon or a combination of sp2 and sp3-hybridized carbon [26]. According to recent reports, doping heteroatoms like nitrogen (N), sulfur (S), boron (B), and phosphorus (P) can be a simple and effective way to boost the optical and electronic characteristics of CDs [27]. For instance, n-type doping, which involves the incorporation of N or S, could enhance the electron density over the CDs’ surface, resulting in a high quantum yield (QY) [28, 29]. In addition, the doping allows many functional groups to be further attached over the CDs’ surface, leading to bandgap-dependent multicolor emission [30]. The newly formed surface states on the carbon core can also result in excitation-independent emission properties. The use of cysteamine hydrochloride is found to be an effective means for heteroatom co-doping due to the existence of both amine (–NH2) and thiol (–SH) functional groups in its molecule [31, 32]. Thus, cysteamine-based doping could enrich the fluorescence properties of CDs through the synergistic effect of N and S heteroatoms co-doped in CDs (NS-CDs). Earlier, NS-CDs were synthesized via microwave-assisted pyrolysis of cysteamine hydrochloride and ammonium citrate for quantification of ascorbic acid and chromium (VI) [33]. The NS-CDs displayed a QY of up to 54.8% and strong photostability. Citric acid monohydrate and cysteamine were exploited to produce NS-CDs for the applications of Cr2O72− and Fe(CN)63− detection, cell imaging, and fluorescent composite films [34].

In this paper, we reported the fluorescent NS-CDs synthesized through a single-step hydrothermal strategy using low-cost precursors, citric acid (CA) and cysteamine hydrochloride, in water (Scheme 1). C-CDs were prepared using citric acid only. The –OH, –COOH, and –NH2 groups attached to the carbon core facilitated the good dispersion of NS-CDs in water. The as-produced cyan blue emissive NS-CDs exhibited a high QY of about 52%, robustness to photobleaching, and good photostability. The NS-CDs fluorescent probe allowed for the sensitive and selective quantification of 4NP with a LOD of 0.028 μM through its fluorescence quenching upon 4NP addition; the inner filter effect (IFE) and (SQ) process were the main drives for quenching. The results indicate that the NS-CDs fluorescent probe can find an effective application in the quantitative detection of 4NP in tap water and drinking water.

Scheme 1
scheme 1

Synthesis route of fluorescent NS-CDs and 4NP sensing

2 Experimental

2.1 Chemicals

Citric acid, phenol, p-phenylenediamine (pPD), 2-nitrotoluene (2NT), aniline, 4-nitroaniline (4NA), 4-chloroaniline (4CA), 4-bromophenol (4BP), 4-nitrophenol (4NP), 3-nitrophenol (3NP), 2-nitrophenol (2NP), 4-nitrobenzoic acid (4NBA), and hydroquinone (HQ) were procured from Sigma Aldrich. Cysteamine hydrochloride was provided by Acros Organics. All the reagents were directly used since they were analytical grade. All the experiments were conducted using ultrapure water.

2.2 Synthesis of NS-CDs

In a typical synthesis of NS-CDs, 0.1 M citric acid (0.77 g, C6H8O7) was weighed and dissolved in 20 mL water. With this solution, 0.2 M cysteamine hydrochloride (1.80 g, C2H7NS·HCl) dissolved in 20 mL water was mixed under vigorous stirring. This reaction mixture (net volume of 40 mL) was shifted to a Teflon-lined autoclave vessel (volume of 50 mL) and permitted to a hydrothermal reaction at 180 °C temperature for 8 h. The obtained solution was naturally cooled to room temperature, centrifuged at 10,000 rpm for 30 min, and then dialyzed with a dialysis bag (molecular weight cut-off: 500 Da) for 48 h. Finally, the product was freeze-dried to obtain NS-CD powder for further use. For comparison, CDs were prepared without cysteamine under identical hydrothermal conditions, and were marked as C-CDs.

2.3 Instrumentation

Fourier transform-infrared (FT-IR) spectral analysis was carried out on a JASCO FT-IR/4600 spectrophotometer. UV–Vis absorption spectra were measured on a JASCO V/770 spectrophotometer. Fluorescence spectral measurements were performed on SCINCO FS/2 fluorescence spectrometer. Raman spectrum was acquired using the Ramboss 500i Micro Raman system with a 633 nm He–Ne laser source. High resolution-transmission electron microscopic (HR-TEM) photographs of NS-CDs coated over a carbon grid were taken on a Tecnai G2 F30, FEI instrument at an operating voltage of 300 kV. X-ray photoelectron spectroscopy (XPS) was performed using a Thermo Scientific VG multiLab/2000 instrument with a monochromatic Al Kα source. Fluorescence lifetime experiments were conducted on a time-correlated single photon counting (TCSPC) instrument (DeltaPro, Horiba Scientific) equipped with a 390 nm excitation laser.

2.4 Quantum yield (QY) measurement

To measure the QY of NS-CDs, quinine sulfate dissolved in 0.1 M H2SO4 (QY = 54% at 360 nm excitation) was used as a reference. The QY was calculated using the equation [35],

$${\text{QY}}_{{\text{S}}} = {\text{QY}}_{{\text{R}}} \frac{{I_{{\text{S}}} A_{{\text{R}}} }}{{I_{{\text{R}}} A_{{\text{S}}} }}\left( {\frac{{n_{{\text{S}}} }}{{n_{{\text{R}}} }}} \right)^{2} ,$$
(1)

where QY, I, A, and n are the quantum yield, the integrated intensity, the absorbance, and the refractive index, respectively. The “S” and “R” denote the sample and reference. Since NS-CDs and quinine sulfate were prepared in ultrapure water both nS and nR values were taken as 1.33. The absorbance was kept below 0.05.

2.5 Analytical procedure for the 4NP detection

4NP was successfully detected in a 100% aqueous solution. The appropriate amount of 4NP ranging from 7.5 to 97.5 μM was sequentially added to 0.5 mL of NS-CDs probe solution in a standard measuring flask, and the final volume was corrected to 5 mL with ultrapure water. Next, this reaction mixture was incubated for 3 min and the fluorescence spectrum was recorded at the excitation wavelength of 350 nm. A similar process was followed to appraise the selectivity of NS-CDs to 4NP among various interfering agents such as phenol, p-phenylenediamine (pPD), 2-nitrotoluene (2NT), aniline, 4-nitroaniline (4NA), 4-chloroaniline (4CA), 4-bromophenol (4BP), 2-nitrophenol (2NP), 3-nitrophenol (3NP), 4-nitrobenzoic acid (4NBA), and hydroquinone (HQ). The same procedure was taken for C-CDs with the concentration of 4NP in the range of 10–400 μM. All the measurements were repeated five times for each analyte.

2.6 Analysis in real water samples

To quantify 4NP in real water samples, tap water and drinking water samples were first collected in glass vessels and they were immediately subjected to analysis without any pretreatments. Both water samples were spiked with known concentrations of 4NP (25 and 50 μM) and were used for the quantification of 4NP via the fluorescence quenching of NS-CDs. A known concentration of the 4NP-spiked water sample was added to NS-CDs and shaken well. After 3 min incubation time, emission spectral measurements were performed in the wavelength range of 380–580 nm with an excitation of 350 nm. The recovery (%) was estimated from the equation [36],

$${\text{Recovery }}\left( {\text{\% }} \right) = \frac{{{\text{Detected }}\;4{\text{NP}}}}{{{\text{Spiked }}\;4{\text{NP}}}} \times 100.$$
(2)

3 Results and discussion

3.1 Analysis of morphology and surface functional groups

The morphology and size of NS-CDs were characterized by TEM and HR-TEM, respectively. Figure 1a, b shows the NS-CDs at different magnifications. The as-synthesized NS-CDs were ultra-small and almost spherical-shaped with good dispersibility. Conversely, the fresh CDs prepared without N, S doping (C-CDs) had a non-uniform distribution and the C-CDs aged for 14 days displayed an agglomerated structure as seen in the TEM images in Fig. S1a, b. In Fig. 1b, the HR-TEM image supports better crystallinity of NS-CDs. As seen in the inset of Fig. 1c, due to the doping of N and S heteroatoms in the CD’s structure, the lattice spacing has become slightly larger (0.27 nm) than the (1120) lattice spacing (0.24 nm) of graphene [37]. The size distribution of particles was calculated from the TEM image (with a minimum of 100 particles) shown in Fig. 1a. As shown in Fig. 1d, the diameter of NS-CDs varied between 1.8 and 4 nm, and the mean diameter was about 2.81 nm.

Fig. 1
figure 1

a TEM and b HR-TEM photographs of NS-CDs. c HR-TEM photograph of NS-CDs. The inset displays the single NS-CD’s lattice. d Size distribution of NS-CDs

The NS-CDs were characterized by XPS to investigate the chemical properties and surface compositions. In Fig. S2, the XPS survey scan demonstrates four characteristic peaks at 166.28 eV, 284.40 eV, 400.78 eV, and 531.69 eV, corresponding to S 2p, C 1s, N 1s, and O 1s, respectively. As displayed in Fig. 2a, the C 1s spectrum of NS-CDs is resolved into three peaks at 288.50 eV, 286.26 eV, and 284.84 eV, which can be assigned to C=O, C–N/C–O, and C=C/C–C bonding, respectively [38,39,40,41]. The O 1s spectrum in Fig. 2b can be deconvoluted into two main peaks at 533.02 eV and 531.48 eV corresponding to C=O and C–O–C/C–OH, respectively. The N 1 s spectrum in Fig. 2c clearly exhibits two main peaks at 400.89 eV and 399.48 eV associated with C–N–C and N–H, respectively [42]. In Fig. 2d, the high-resolution S 2p spectrum consists of three peaks at 168.22 eV, 164.93 eV, and 163.65 eV. The peak at higher energy represents the presence of C–SOx sulfone bridges while the other two peaks correspond to S 2p1/2 and S 2p3/2 spectra of the C–S–C covalent bond in a thiophene-type structure due to the spin–orbit splitting [43, 44]. Accordingly, C-CDs were taken to XPS to identify their elemental compositions and molecular structure. As shown in Fig. S2b, only C and O elements are present in C-CDs. The C 1 s spectrum in Fig. S2c shows the binding energies of 287.88 eV, 286.58 eV, and 284.90 eV for C=O, C–O, and C=C/C–C groups, respectively. In Fig. S2d, the O 1 s spectrum is deconvoluted into 532.86 eV and 530.99 eV, which corresponds to the C=O and C–O–C/C–OH groups, respectively [38, 42]. Raman spectral analysis was also performed to study the structural properties of NS-CDs. As seen in Fig. 3a, the Raman spectrum exhibits two distinct characteristic bands near 1362 cm–1 (D-band) and 1559 cm–1 (G-band) related to the disorder-induced vibration modes of the sp3-hybridized graphitic carbon and the in-plane vibration modes of sp2-hybridized graphitic carbon, respectively [45,46,47,48]. The areal ratio (ID/IG) is 1.94, signifying the low degree of graphitization and the existence of disordered carbon. The result well agrees with the HR-TEM and XPS results of NS-CDs.

Fig. 2
figure 2

High-resolution a C 1s, b O 1s, c N 1s, and d S 2p peaks of NS-CDs

Fig. 3
figure 3

a Raman spectrum and b FT-IR spectrum of NS-CDs

The surface functional groups of NS-CDs were reported by FT-IR spectrum. As shown in Fig. 3b, the characteristic absorption band centered at 3428 cm−1 was due to the N–H and/or OH groups. The sharp peak at 2926 cm−1 was related to the C–H stretching vibrations [33]. The peak positioned at 2557 cm−1 was due to the S–H bending vibrations [49]. Two peaks located at 1645 cm−1 and 1466 cm−1 arose due to the C=O and C–N stretching vibrations, respectively [33, 50]. The absorption peak at 1235 cm−1 was attributed to the C–O stretching vibrations, and another peak at 1092 cm−1 could be ascribed to the C–O and C–S stretching vibrations [33, 34]. The peak at 757 cm−1 was due to the C–S stretching vibrations [49]. Similarly, the FT-IR spectrum of C-CDs in Fig. S3a shows the absorption band at 3418 cm−1 due to the OH groups. The peak at 1645 cm−1 corresponded to the C=O stretching vibrations. The absorption peaks at 1231 cm−1 and 1091 cm−1 were attributed to the C–O stretching vibrations. The peak at 769 cm−1 was due to the C–H stretching vibrations, confirming the formation of C-CDs without N and S dopants.

3.2 Optical properties

The optical properties of the produced NS-CDs were studied through the UV–Vis absorption and fluorescence spectral measurements. As seen in Fig. 4a, the absorption spectrum of NS-CDs clearly shows a small hump at around 246 nm associated with π–π* transition of the aromatic sp2 domains. The additional peak located at 342 nm was due to the trapping of excited-state energy by the surface states, resulting in strong emission [51]. For the excitation at 350 nm, the emission peak was clearly observed at 465 nm. In addition, the inset photographs of Fig. 4a show the deep yellow NS-CDs solution in daylight, generating a bright cyan blue light under UV irradiation at λUV = 365 nm, which could be clearly viewed by the naked eye. For C-CDs, the absorption peak was observed at 340 nm (Fig. S3b). Moreover, the relative QY of purified NS-CDs was determined at 350 nm. They displayed a high QY of about 52%, signifying the strong fluorescence in UV light. But the QY was only 18% for C-CDs. The NS-CDs display excellent QY compared to C-CDs.

Fig. 4
figure 4

a UV absorption and emission spectra of NS-CDs. The insets are the photographs of the newly prepared NS-CDs in (i) daylight and (ii) UV light (λUV = 365 nm). b Emission spectra of NS-CDs under different excitation wavelengths

The emission spectrum of NS-CDs was recorded in the wavelength range of 380–580 nm under different excitation wavelengths. As seen in Fig. 4b, the emission of NS-CDs was independent of the excitation wavelength. With the increase of excitation wavelength from 325 to 375 nm, the emission intensity initially increased and then decreased. The emission intensity was maximum for the excitation at 350 nm and the emission wavelength of NS-CDs was almost unchanged and centered at ~ 465 nm. This excitation wavelength-independent emission behavior is mainly due to the uniform surface states created by the functional groups attached to the carbon core and homogeneous structure.

3.3 Photostability of NS-CDs

The fluorescence stability was investigated for the NS-CDs in different time intervals under UV light. The as-prepared NS-CDs were continuously exposed to UV light (λUV = 365 nm) for 120 min duration. As displayed in Fig. 5a, there was no change in the fluorescence spectrum after long time UV exposure, demonstrating the exceptional photostability of NS-CDs. But, the fresh C-CDs (without N, S doping) showed comparatively poor photostability in UV light. As seen in Fig. S4a, the initial fluorescence intensity was moderately reduced after 120 min of UV exposure. Further, the C-CDs displayed less fluorescence after 14 days of aging as noticed in Fig. S4b, showing the poor storage stability of C-CDs. Interestingly, NS-CDs showed outstanding stability, which persisted even after they were aged for 2 months. The influence of incubation time on the fluorescence intensity of NS-CDs was studied. As seen in Fig. 5b, the fluorescence reduced in the presence of 4NP (7.5 μM) up to 3 min. This quenching effect could be due to the interaction of the –COOH, –NH2, and –SH groups located on the NS-CDs’ surface with 4NP. As soon as the reaction between 4NP and NS-CDs reached an equilibrium, no remarkable difference in the fluorescence intensity was noticed after 3 min. Hence, throughout the experiment, 3 min was taken as the favorable incubation time prior to taking the spectral measurements.

Fig. 5
figure 5

a Photostability of NS-CDs exposed in UV light (λUV = 365 nm) for 120 min. The inset displays the corresponding photographs of NS-CDs. b Influence of time on the fluorescence of NS-CDs after the 4NP addition (7.5 μM)

3.4 Sensitive detection of 4NP

To validate the sensitivity of this analytical method, under optimized experimental circumstances, the emission spectral features of NS-CDs were examined with respect to a series of uniformly increasing 4NP concentrations. Under the excitation of 350 nm, the emission spectra were measured in the wavelength range of 380–580 nm. As seen in Fig. 6, the fluorescence intensity of NS-CDs peaked at 465 nm and was steadily quenched with the concentration of 4NP increasing from 7.5 μM. When the concentration attained 97.5 μM, about 84% of the fluorescence intensity was reduced. Besides, the maximum quenching of NS-CDs by 4NP was visually verified under UV light irradiation (λUV = 365 nm), where the strong cyan blue fluorescence color vanished (inset of Fig. 6). In Fig. 7, the calibration plot of fluorescence intensity (at 465 nm) versus 4NP concentration shows a linearity in the concentration range of 7.5–97.5 μM with a correlation coefficient of R2 = 0.9799. The limit of detection (LOD) was determined from the equation, LOD = 3σ/m, where σ means the standard deviation and m denotes the slope of the linear plot. The value of LOD was determined as 0.028 μM at a signal-to-noise ratio (SNR) of 3, which is lower than the EPA-recommended acceptable limit of 4NP in drinking water (0.43 μM). Furthermore, the sensing ability of C-CDs was examined by measuring the emission spectrum in the wavelength range of 350–550 nm under the excitation of 350 nm. As displayed in Fig. S5a, the emission intensity was centered at 417 nm while not reduced for the initial addition of 4NP (10 μM). However, the intensity was reduced for the 50 μM addition and this decreasing trend was continued up to 400 μM. Further increase of 4NP concentration did not produce any quenching effect and only 59% of fluorescence quenching was achieved for the final addition of 4NP (400 μM). In Fig. S5b, the calibration plot shows a linearity in the concentration range of 50–400 μM with a correlation coefficient of R2 = 0.9881. The calculated LOD was 2.29 μM, which was 82-fold less than the LOD value of NS-CDs (0.028 μM). This shows that C-CDs have much poorer sensing capability than NS-CDs. Hence, the proposed NS-CDs fluorescent probe is highly sensitive and can quantify 4NP at trace concentrations. A comparison of the as-developed probe with some already reported CD-based fluorescent probes for the 4NP determination is given in Table 1. As presented in Table 1, in terms of the linear range and LOD, the existing probe is analogous to/better than others.

Fig. 6
figure 6

Fluorescence spectral response of NS-CDs for different concentrations of 4NP analyte in water. a → n represents the concentration of 4NP increasing from 0 to 97.5 μM in steps of 7.5 μM for each addition (λex = 350 nm and λem = 465 nm). The insets are the photographs of (i) NS-CDs without 4NP and (ii) NS-CDs with 97.5 μM 4NP

Fig. 7
figure 7

Calibration plot for the fluorescence intensity of NS-CDs versus the concentration of 4NP

Table 1 Detection of 4NP using CDs as a fluorescent probe synthesized from various chemical precursors

3.5 Possible quenching mechanism

There are several pathways that could be feasible for the fluorescence quenching of NS-CDs such as photoinduced electron transfer (PET), Forster resonance energy transfer (FRET), excited-state reactions, IFE, SQ, dynamic quenching (DQ) [67]. For FRET and IFE processes, the condition of spectral overlap between the excitation band and/or emission band of the NS-CDs fluorescent probe and the absorption band of the 4NP analyte must be satisfied [68]. In the present work, as seen in Fig. 8a, the UV absorption spectrum of 4NP exhibits a broad spectral band in the range of 250–600 nm with an absorption maximum of 317 nm. Also, for the excitation at 350 nm, NS-CDs exhibit a strong emission maximum at 465 nm. The strong absorption band of 4NP well overlaps with the excitation band but scarcely with the emission band of NS-CDs, which opens up the possibility of the IFE process for fluorescence quenching (Fig. 8a).

Fig. 8
figure 8

a Spectral overlap of the UV absorption band of 4NP with the excitation band and the emission band of NS-CDs. b Fluorescence decay profile for NS-CDs without 4NP and with 4NP (45 μM) in water

To clarify further, the fluorescence decay time (τ) for NS-CDs before and after the 4NP addition was examined. The decay profiles were fitted by a single exponential function and the data is displayed in Fig. 8b. The decay time for NS-CDs without 4NP was 6.36 ns. After the 4NP addition (45 μM), the value was 6.21 ns. Since there is no significant change in the decay times, the chance for the FRET process can be excluded [2, 69]. Therefore, IFE would be the possible mechanism. However, there is a probability of PET between NS-CDs (donor) and 4NP (acceptor) for the fluorescence quenching, because NS-CDs have an electron-rich amino group (NH2) and 4NP has an electron-deficient nitro-group [70].

Apart from this, other kinds of quenching mechanisms such as SQ and DQ can be conventionally defined by the Stern–Volmer equation [71],

$$\frac{{F_{0} }}{F} = 1 + K_{{{\text{SV}}}} \left[ {4{\text{NP}}} \right] = 1 + K_{{\text{q}}} \tau \left[ {4{\text{NP}}} \right],$$
(3)

where F0 is the fluorescence intensity before the 4NP addition and F is the fluorescence intensity after the 4NP addition, KSV is the Stern–Volmer quenching constant, [4NP] is the 4-nitrophenol concentration, Kq is the bimolecular quenching rate constant, and τ is the fluorescence decay time of NS-CDs before the addition of 4NP. As defined by the above equation, the plot of F0/F versus [4NP] is presented in Fig. S6. It is clear that F0/F shows a good linearity with the concentration of 4NP ranging from 7.5 to 97.5 μM. By taking the slope of the linear plot, the value of KSV was found to be 4.410 × 104 dm3mol−1. Substituting the value of τ (before the 4NP addition) in Equ. (3), Kq was obtained as 6.933 × 1012 dm3mol−1 s−1. At this point, it is important to discuss the mechanism underlying the fluorescence quenching of NS-CDs by 4NP. The calculated value of Kq is much higher than the DQ constant (2 × 1010 dm3mol–1 s–1), indicating the creation of a non-fluorescent ground-state complex ( SQ) due to the interaction between the functional groups on NS-CDs’ surface and 4NP [72, 73]. Das and Dutta verified a similar behavior in the quantification of 4NP using N-doped CDs [58]. In our work, the highly sensitive detection of 4NP by NS-CDs was possible due to the SQ process as well as IFE occurring between the NS-CDs probe and 4NP analyte. The C-CDs followed similar kinds of quenching mechanisms towards 4NP quantification, as displayed in Fig. S7. In addition to that, the QY was reduced to 7.5% for the final addition of 4NP (97.5 μM), which also supports the fluorescence quenching of NS-CDs.

3.6 Selectivity of 4NP detection

The selectivity of NS-CDs for the 4NP quantification was appraised by performing the fluorescence spectral studies on the NS-CDs with different interfering agents, such as phenol, p-phenylenediamine (pPD), 2-nitrotoluene (2NT), aniline, 4-nitroaniline (4NA), 4-chloroaniline (4CA), 4-bromophenol (4BP), 2-nitrophenol (2NP), 3-nitrophenol (3NP), 4-nitrobenzoic acid (4NBA), and hydroquinone (HQ) in the presence and absence of 4NP. The concentrations of 4NP and other interfering agents were taken as 100 μM each. The obtained results are presented as photographic images and bar diagrams in Fig. 9a, b. As seen in Fig. 9a, the response of NS-CDs to the abovementioned potential interfering agents in terms of fluorescence color change was examined under analogous experimental conditions. The NS-CDs displayed negligible fluorescence quenching response to the interfering agents except for 4NP. Due to the introduction of 4NP into NS-CDs solution, the fluorescence of NS-CDs was efficiently reduced, while the intensity was almost unaffected by 2NT, 4NBA, 2NP, 3NP, and 4NA, which is displayed in Fig. 9b. No significant fluorescence quenching response was noticed for 2NP and 3NP because their absorption is less than 290 nm. Moreover, with the addition of 4NP to the NS-CDs solution containing other interferences, the fluorescence intensity of NS-CDs decreased, signifying that the present fluorimetric approach is highly selective to the 4NP sensing. As seen in Fig. S8, the selectivity of C-CDs was analyzed against the interfering compounds (400 μM) and it showed fluorescence response against 2NP, 3NP, and 4NA. NS-CDs showed higher selectivity towards 4NP sensing than C-CDs. To summarize, NS-CDs were a potent fluorescent probe over C-CDs in terms of sensing ability and selectivity against potential interferences.

Fig. 9
figure 9

a Photographs for NS-CDs with different interfering agents in UV light (λUV = 365 nm). b Fluorescence response of NS-CDs to 4NP and selected interferences (100 μM) in 100% aqueous medium. The green bars represent the responses of various interfering chemical compounds, whereas the yellow bars denote the responses of 4NP with various interferences

3.7 Detection in real water samples

As per the above results, the feasibility of NS-CDs for the quantitative determination of 4NP in real water samples was further explored by following the standard addition method. The obtained results are given in Table 2. As presented in Table 2, the analytical results showed that a trace of 4NP was not identified in the collected water samples. So, a recovery test was performed by sequentially adding the appropriate amount of 4NP (25 and 50 μM) to the samples. Upon adding 4NP-spiked water samples with NS-CDs, the fluorescence intensity decreased, suggesting that 4NP solely affects the emission of NS-CDs. The recovery rate was in the range between 96.24 and 98.36% with a relative standard deviation (RSD) below 3.5%, representing there was no major interference in the real water samples by the addition of 4NP. These findings imply that the method is precise and reproducible, and it is possible to quantify 4NP in real water samples using the NS-CDs fluorescent probe.

Table 2 Quantification of 4NP in tap water and drinking water

4 Conclusions

A simple, non-toxic, and sensitive fluorescent probe was synthesized for the specific detection of trace 4NP in water using strong cyan blue emissive NS-CDs. The NS-CDs showed good fluorescence characteristics with a QY of about 52%. Under excitation at 350 nm, the NS-CDs exhibited a strong emission intensity centered at 465 nm. Emission intensity was reduced to about 84% for the final addition of 4NP analyte (97.5 μM). Time-resolved fluorescence decay profile revealed that the IFE process occurring between NS-CDs and 4NP could account for fluorescence quenching, which led to an excellent 4NP sensing performance. The strong quenching was also accredited to the ground-state complex formation. Moreover, NS-CDs fluorescence-based detection of 4NP in water was not notably influenced by other nitro-substituted interfering agents in any manner. The NS-CDs achieved a LOD of 0.028 μM for the detection of 4NP. The greater sensitivity and selectivity of NS-CDs over C-CDs ensured that NS-CDs can be a reliable fluorescent probe for quantifying trace 4NP in tap water and drinking water samples, with good recoveries.