Application of polyaniline nanofibers for the construction of nitrate all-solid-state ion-selective electrodes

The application of polyaniline nanofibers doped with chloride and nitrate ions (PANINFs-Cl and PANINFs-NO3) in potentiometry was described. Both kinds of nanofibers were used as an ion-to-electron transducer in ion-selective electrodes with solid contact (SCISEs). Extensive research on the properties of the nanofibers themselves (SEM, UV–Vis spectroscopy, FTIR) and the constructed electrodes (potentiometric methods, electrochemical impedance spectroscopy) has been carried out. Basic analytical parameters of electrodes containing various nanofibers contents in the ion-selective membrane and with nanofibers as an intermediate layer were determined. It was found that application of PANI nanofibers resulted in improvement of electrode performance (among others, better stability and reversibility of the electrode potential). The obtained sensors were characterized by a high slope of the calibration curve, a wide measuring range and a fast response time. Moreover, they were insensitive to change of redox potential, as well as light and the presence of oxygen in the solution, what is important from a practical point of view. They were also successfully used for nitrate determination in real environmental samples.


Introduction
Thanks to their numerous technical advantages (easy operation of the equipment, speed of analysis, cheap apparatus, no need for special preparation of liquid samples) and analytical ones (very good selectivity, low detection limits) potentiometric methods are still very popular, especially in environmental chemistry (De Marco et al. 2007;Crespo 2017). The most popular sensors used in potentiometric methods are ion-selective electrodes (ISEs). The principle of measurement using them is to measure the electrochemical force of the cell (EMF), which is made of an ion-selective electrode (whose potential depends on the activity of ions in the solution) and a reference electrode (whose potential is constant) (Hu et al. 2016).
The first designs of ion-selective electrodes consisted of an inner electrode, an ion-selective membrane and also an internal solution placed between them, which was in direct contact with the membrane and provided the proper charge transfer mechanism between the membrane and the discharge electrode. They showed very good analytical parameters, but due to the presence of the solution inside the electrode the sensors had a relatively large size and their storage and transport were difficult. Air bubbles could have occurred inside such an electrode and moreover, it was necessary to replenish the solution which, when leaking into the sample solution, could cause an artificial increase in the detection limit by triggering an increase in the concentration of the analyte (main ion) in the nearest sample-electrode layer. The solution in this case was to eliminate of internal solution (coated-wire electrodes); however, this was associated with deterioration in the stability and reversibility of the electrode potential as a result of the direct connection of two materials with different conductivity, notably the substrate electrode (electronic conductivity) and the ion-selective membrane (ionic conductivity), thus blocking the flow of charge at the interface (Bobacka 2006). To obtain a satisfactory potential stability, at the same time with no internal solution, additional material with mixed conductivity (ion-electron transducer) placed as an intermediate layer between them, was used to construct the electrodes (Michalska 2012). In this way, ion-selective electrodes with solid contact (SCISEs) were created (Bieg et al. 2017). The use of this additive contributed to ensuring the appropriate stability and reversibility of the sensors' potential, facilitated their operation under changing pressure and temperature conditions, and enabled their miniaturization and shape change (Bobacka et al. 2008;Lindner and Gyurcsányi 2009).
The first conductive polymers to be used for this purpose were as follows: poly(pyrrole) (PPy) (Michalska et al. 1994;Sutter et al. 2004), poly(3-octylthiophene) (POT) (Konopka et al. 2004;Chumbimuni-Torres et al. 2006;Rubinova et al. 2007), poly(3,4-ethylenedioxythiophene) (PEDOT) (Bobacka et al. 2001;Vázquez et al. 2002;Ocypa et al. 2006) or polianiline (PANI) Han et al. 2004;Lindfors et al. 2007). The characteristics of the SCISEs in which they are used as ion-electron transducers have improved significantly over the years and they are still widely used for this purpose (Bobacka 2006). Conductive polymers belong to a group of materials with unique electrical, electrochemical and optical properties (Abdolahi et al. 2012). Due to its synthesis simplicity, high environmental stability (Jiang et al. 2018), good redox properties, attractive price and unique chemical structure polyaniline (PANI) is particularly important in designing sensors and biosensors (Ahmed et al. 2021). The PANI can be synthesized by oxidative chemical or electrochemical polymerization (Zhang and Wang 2006) and can exist in three forms with different oxidation states and protonation level: leucoemeraldine, pernigraniline and emeraldine base (Najim and Salim 2017). These forms have different conductivities and only emeraldine base PANI in half oxidation state is conductive (Dan et al. 2009). As is reported in the work by Jiang et al. (2018) nanostructured conductive polymers in the form of nanofibers (Zhang et al. 2021), nanowires (Zhang et al. 2020;Zeng et al. 2021) or nanotubes (Das et al. 2021) are particularly important in the field of chemical sensors. In comparison to globular PANI nanostructured forms exhibit greater sensitivity and faster time due to their higher surface area (Huang and Kaner 2004). The PANI nanostructures with controllable length and diameter can be synthesized using hard-template synthesis method that utilizes pores and/or channels of porous materials, i.e., membranes, zeolites or anodic aluminum oxide. However, removal of the template is relatively difficult, which makes this method unpopular (Zhang and Wang 2006). The soft-template synthesis methods, also known as template-free method or self-assembly method to obtain PANI nanostructures uses various structure-directing molecules i.e., surfactants (Zhang and Manohar 2004), deoxyribonucleic acid (DNA) or polyelectrolytes.
Procedures that do not use any matrix, either hard or soft, are a completely separate group of methods for synthesis of nanostructured polymers. This group of methods includes interfacial, radiolytic, rapid mixing, sonochemical and electrochemical polymerization (Zhang and Wang 2006).
This study described the properties of synthesized polyaniline (PANI) nanofibers doped with chloride (PANINFs-Cl) and nitrate (PANINFs-NO 3 ) ions and their use as solid contact in ion-selective electrodes sensitive to nitrate ions. The synthesized nanofibers were characterized using SEM, UV-Vis and FTIR spectrophotometry. They were then used in two ways: as an intermediate layer between the inner glassy carbon electrode and the ion-selective membrane, and as the ion-selective membrane component. The basic analytical parameters of the constructed sensors were examined in order to investigate the influence of PANI nanofibers on their performance. On the basis of potentiometric measurements, information was obtained about the slope of the electrode characteristic curve, their linearity range and the limit of detection, as well as the stability and reversibility of the potential. In addition, research was conducted to investigate the influence of variable conditions on the proper operation of the sensors (the effect of changes in solution pH and redox potential, the presence of light and oxygen) were carried out. Electrochemical impedance spectroscopy (EIS) was used to determine and compare the electrical parameters of the electrodes, whose values could have changed after the modification of the sensors.

Apparatus
To carry out research enabling the characterization of the obtained structures (PANINFs-Cl and PANINFs-NO 3 ), their solutions with a concentration of 1 mg mL −1 in THF were prepared. The images of PANINFs structure were recorded using a high-resolution scanning electron microscope Quanta 3D FEG (FEI Hillsboro, USA). Ultraviolet-visible spectra (UV-Vis) were recorded on Helios Gamma (Thermo Scientific) ultraviolet-visible spectrometer in wavelength ranged from 200 to 900 nm. FT-IR/DRS spectra were collected using a Nicolet 380 spectrophotometer purchased from Thermo Scientific. The spectra of PANI nanostructures obtained in presence of Cl − and NO 3 − ions were recorded in range of 4000-400 cm −1 with resolution of 4 cm −1 at room temperature. To guarantee good signal/noise ratio, the spectra were consisted of 2048 scans.
Potentiometric measurements were performed for a cell which consisted of the tested ion-selective electrodes and the Ag/AgCl reference electrode (Metrohm 6.0750.100). The electrodes were immersed in solutions of the main ion salt (KNO 3 ) mixed with a magnetic stirrer. A potentiometer (Lawson Labs, Inc.) coupled to a computer was used to obtain and collect data. Additionally, an ORION 81-72 glass electrode and an Elmetron CX-741 potentiometer were used to determine the pH of the solutions. All measurements were made at room temperature.
Measurements obtained by the electrochemical impedance spectroscopy (EIS) were performed in a 1 × 10 -2 mol L −1 KNO 3 solution. The system included three kinds of electrodes: our tested ISE as working electrode, Ag/AgCl reference electrode (Metrohm 6.0733.100) and the auxiliary electrode-a GC rod 2 mm/65 mm (Metrohm). As the measuring device the AUTOLAB electrochemical analyzer (Eco Chemie, Netherlands) controlled by NOVA software. The impedance spectra were recorded in the frequency range 0.1-100 kHz at the open circuit potential with an amplitude 10 mV.
Ion-selective membrane components for electrodes construction: o-nitrophenyl octyl ether (NPOE), low molecular weight poly(vinylchloride) (PVC), tridodecyl dimethyl ammonium nitrate (TDMANO 3 ) were purchased from Aldrich. Salts for the preparation of solutions with different redox potential were obtained from Alfa Aesar (Na 4 Fe(CN) 6 × 10 H 2 O) and from POCh-Polish Chemical Reagents (K 3 Fe(CN) 6 ). The remaining substances, including potassium salts for testing the selectivity of sensors, sulfuric acid and sodium base for changes of pH of the solutions, were obtained from Fluka. Compounds of the highest purity and freshly redistilled water were used to prepare all solutions.

PANI nanofibers synthesis
PANI nanofibers were synthesized by interfacial polymerization according to procedure described in paper (Huang and Kaner 2004) and shown in Fig. 1. A 50 mmol amount of aniline monomer was dissolved in mixture of EtOH and distillated water to obtain solution with concentration of 5 × 10 -2 mol L −1 . Then, in two separate vials, 0.08 mmol of APS was dissolved in 1 mol L −1 HCl and HNO 3 solution, respectively. To carry out the polymerization reaction, the aniline monomer and oxidant solutions were carefully transferred to a beaker to form static interface of two phases: organic phase and water phase. After 12 h the resulting precipitate was filtered and cleaned using deionized water several times. Directly before using, the synthesized PANI nanofibers were dried at 60 °C for 24 h.

Preparation of all-solid-state ion-selective electrodes
Glassy carbon electrodes (GCE) (0.3 cm diameter) were polished thoroughly with 5000 grit sandpaper and then polished with wetted alumina powder (0.3 µm grain diameter). The electrodes were rinsed thoroughly with distilled water, immersed in water in an ultrasonic bath, and rinsed again with distilled water to remove dust residues. To get rid of organic residues, the electrodes were immersed in THF and allowed to dry in a stand. For both types of nanofibers, 5 types of electrodes were made: unmodified electrodes containing only the basic mixture without nanofibers-GCE/ISM, electrodes with 0.5; 1.0 and 2% nanofibers in the ion-selective membrane (GCE/(ISM + 0.5%PANINFs-Cl); GCE/(ISM + 1.0%PAN-INFs-Cl) and GCE/(ISM + 2.0%PANINFs-Cl) for PANI-Cl nanofibers and GCE/(ISM + 0.5%PANINFs-NO 3 ); GCE/ (ISM + 1.0%PANINFs-NO 3 ) and GCE/(ISM + 2.0%PANINFs-NO 3 ) for PANI-NO 3 nanofibers, respectively) and electrodes with an intermediate layer of nanofibers (15 µl of 0.01 g/ml nanofibers in THF)-GCE/PANINFs-Cl/ISM and GCE/PAN-INFs-NO 3 /ISM. On the dry surfaces of the electrodes, 3 times 50 µl of membrane mixtures were spotted with an interval of 30 min. The electrodes were then allowed to dry overnight and the next day immersed in a conditioning solution of KNO 3 salt at a concentration of 1 × 10 -3 mol L −1 . Between measurements all electrodes were stored in separate containers, immersed in the conditioning solution, closed in a dark place.

Results and discussion
Modified polyaniline nanofibers were used for the construction of the electrodes as a solid contact placed both as an intermediate layer between the glassy carbon electrode (GCE) material and the ion-selective membrane material, and as a component of the membrane with different contents. A series of potentiometric measurements were performed to determine the parameters of the electrodes. The slopes of the calibration curves, their linearity ranges and the limits of detection were determined for all types of sensors. In addition, the reversibility and stability of the electrode potential were also investigated. The pH range in which the sensors can work properly and their selectivity for interfering ions were determined. The sensitivity tests of sensors to changing measurement conditions (redox potential change, presence of oxygen and light) were performed. For a more complete analysis, using the electrochemical impedance spectroscopy (EIS) technique, the electrical parameters of the obtained electrodes were also determined and compared.

PANI nanofibers characterization
The scanning electron micrographs shown in Fig. 2 clearly confirm the preparation of PANI in the form of nanofibers embedded in compact polymeric structures. Structural analysis indicates that the applied ion directly affects the microstructure of the obtained nanofibers, as also observed in the paper (Bednarczyk et al. 2021). The oxidative polymerization reaction carried out in the presence of NO 3 − ions allows the synthesis of longer and better formed nanofibers. However, the presence of both studied ions results in relatively cohesive structures of polymeric PANI nanofibers. Compact PANI structures may be formed due to the synthesis method, the reaction system oxidizability and the monomer concentration in the reaction system. Applied to PANI nanofibers synthesis interfacial polymerization belongs to static methods where the system is not continuously stirred during the chemical reaction. Secondly, obtaining of compact PANI nanofibers structure may also result from the high oxidizability of the reaction system (Zeng et al. 2015). APS is a relatively strong oxidant, so during the initial stage of the aniline polymerization reaction, a large number of oligomers are probably formed, and their further combination led to the compact nanofiber structure. In addition, the compact nanofiber structure may be due to the high monomer concentration, which causes subsequent nanofibers to be deposited on previously synthesized polymers. Figure 3 shows the UV-Vis spectrum of PANI nanofibers synthesized in the presence of Cl − and NO 3 − ions. These spectra show three main absorption bands with different intensities depending on the ion employed. This means that the type of used ion does not significantly influence the optical structure of the obtained PANI nanofibers. Both PANI nanofibers contain a cation radical in their structure, as indicated by the presence of absorption bands at 238 nm (PANINFs-Cl) and 232 nm (PANINFs-NO 3 ) corresponded to π-π* transition in benzenoid structure (Zeng et al. 2015;El-ghaffar et al. 2016). The absorption bands appearing at wavelengths above 300 nm correspond to polar on band → π* transition indicating that both PANINFs-Cl and PANINFs-NO 3 are partially doped (Zhang et al. 2009). These characteristic peaks clearly confirm synthesis of conductive emeraldine salt form. Figure 4 shows the FTIR spectra of PANI nanofibers synthesized in the presence of Cl − and NO 3 − ions. Analysis indicates that the type of ion used does not affect the molecular structure of the synthesized fibers either. The FTIR spectra obtained indicate the presence of bands characteristic for PANI. The broad band appearing at a wavelength of about 3500 cm −1 is attributed to -NH 2 stretching. At wavelengths of about 3200 cm −1 and 2850 cm −1 two small peaks attributed, respectively to -N-H + and C-H bonds vibrations are observed. The existence of a protonated amine group is also confirmed by peaks at about 1630 cm −1 and 1090 cm −1 assigned to -N-H and C-NH + •-C vibrations, respectively. The vibration of the C-NH + •-C group and -N-H + bond clearly confirm that the synthesis of PANI in both the presence of Cl − and NO 3 − ions leads to the formation of a nanostructured polymer in salt form. The benzenoid structure of obtained PANI nanostructures is confirmed by peaks at 1450 cm −1 , 1200 cm −1 and 880 cm −1 corresponding, respectively to C-C bond stretching vibration, C-C-H group vibration and out-of-plane bending vibration of C-H bond (Zhang et al. 2009;Zeng et al. 2015;Ahmed et al. 2021).

Potentiometric response
The dependence of the potential of the tested electrodes on nitrate ions concentration was measured in KNO 3 solutions in the concentration range of 1 × 10 -7 -1 × 10 -1 mol L −1 in relation to the silver chloride electrode as the reference electrode. The obtained calibration curves for all electrodes are shown in the Fig. 5. The slopes of the calibration curves obtained by these measurements, their linearity ranges and detection limits are summarized in Table 1.
As it can be seen in Fig. 5 and Table 1 use of PANINFs to the nitrate ion-selective electrodes preparation had the beneficial effect on their potentiometric response. In each case, the modified electrode showed a wider measuring range, a lower limit of detection and a greater slope of the calibration curve than the electrode without nanofibers. Considering both types of nanofibers used, it can be seen that PANI-Cl nanofibers have a greater influence on the improvement of electrode's analytical parameters. The electrodes containing them both in the membrane and as an intermediate layer show wider linearity range of 1 × 10 -6 -1 × 10 -1 mol L −1 and also achieved lower limits of detection than other electrodes. The lowest limit of detection of 3.16 × 10 -7 mol L −1 was obtained for the GCE/PANINFs-Cl/ISM). In the case of electrodes containing PANINFs-NO 3 in the membrane also, an improvement in the electrode response was observed compared to the unmodified electrode, but to a lesser degree. For these electrodes the detection limit decreased by about 0.5 orders of magnitude. However, for the electrode based on PANINFs-NO 3 as an intermediate layer, similar results were obtained as for electrodes based on PANINFs-Cl.

Short-term stability of the potential
The short-term stability of the electrode potential was measured in a KNO 3 solution with a concentration of 1 × 10 -1 mol L −1 . Figure 7 shows the potential change that occurred in the solution during 3 h (time selected as optimal, during which it is possible to successfully perform calibration and series of measurements with reserve). The addition of nanofibers both to the membrane and as an intermediate layer had a good effect on improving the stability of the sensors, the stability of which was significantly improved compared to the unmodified electrode (4.74 mV/h) (Table 1). Among the modified electrodes, the electrodes with the intermediate layer of PANI-Cl and PANI-NO 3 nanofibers were characterized by a lower potential drift of 0.53 and 0.84 mV/h, respectively.

pH range
Measurements of the electrode potential were also performed in solutions of various pH, with the main NO 3 − ion concentration equal to 1 × 10 -3 mol L −1 . The pH range at which the potential was constant was very broad for all electrodes, while for the PANINFs-Cl based electrodes the pH range was somewhat wider in the alkaline range. Measurements with these electrodes can be successfully performed even in the range of pH 4.0-12.5 (Table 1). It is a very wide pH range, which does not significantly limit the possibility of determining nitrate ions in liquid samples.

Selectivity
The selectivity of ion-selective electrodes is a very important analytical parameter, necessary for their proper operation and obtaining correct analysis results. The good selectivity of the sensors allows to determine the concentration of the analyte (main ion) in the presence of other ions present in the solution. The components of the ion-selective membrane are responsible for selectivity, the most important of which is the ionophore, but also other ionic additions. The selectivity of the obtained sensors was tested using the separate solutions method (SSM) (Bakker et al. 2000). The addition of PANINFs did not significantly change the selectivity of the sensors. However, in all cases the selectivity also did not deteriorate. A greater difference in improved selectivity coefficients was noted for electrodes with nanofibers in the membrane than for electrodes with an intermediate layer. The results obtained for electrodes based on PANINFs-Cl nanofibers are shown in the Fig. 8. The selectivity coefficients for PANINFs-NO 3 electrodes were determined with the same method. The obtained values were comparable to those obtained for the electrodes with PANINFs-Cl.

Effects of light and O 2
The resistance of the electrodes to changes in measurement conditions is very important to ensure the correctness of the obtained results. Electrodes containing conductive polymers as solid contact, unfortunately, are often sensitive to light, the presence of gases (CO 2 , O 2 ) and pH changes, therefore it is very important to check whether the sensors are able to work properly regardless of external conditions (Vázquez et al. 2002). The research on the influence of light and the presence of oxygen in solutions on the electrode potential was performed. The potential measurements were made in the KNO 3 solution with a concentration of 1 × 10 -1 mol L −1 . The dependence of the electrode potential with the light on and off is shown in Fig. 9, while in a deoxygenated and containing oxygen solution, in Fig. 10. The solution was deoxygenated by bubbling nitrogen through it for half an hour. All sensors worked properly, regardless of exposure to light and different oxygen content in the solution. The value of the potential does not change significantly, so it can be concluded that they are not sensitive to changes of these parameters.

Redox sensitivity
Redox sensitivity measurements were performed in solutions containing a pair of redox ions Fe 2+ and Fe 3+ (Na 4 Fe(CN) 6 and K 3 Fe(CN) 6 ) in the constant ionic background of 1 × 10 -3 mol L −1 KNO 3 . The log Fe 2+ /Fe 3+ ratio was − 1; − 0.7; 0; 0.7 and 1. Figure 11 shows the dependence of the measured potential on the value of the redox potential of the solution. For all electrodes, the change of redox potential does not impact on the electrode potential, which was almost constant (sd max ± 1.37 mV) in all solutions. Therefore, it can be concluded that the tested electrodes are not sensitive to changes in the redox potential of the sample.

Life time
To establish the minimum time during which the electrodes are able to work properly, calibration curves were made in freshly prepared nitrate ions solutions regularly twice a week for 3 months. After this time, linear ranges of calibration curves unchanged and the slopes decreased slightly, while for all electrodes it was over 97% of the initial value. Therefore, it was found that the electrodes were still working properly, and their lifetime is at least 3 months.

Electrochemical impedance spectroscopy
To study the effect of electrode modification by use of PANINFs the electrochemical impedance spectroscopy measurements were conducted. This technique allows the determination of the membrane resistance and the tracking of the processes at the interface: the ion-selective membrane/the inner electrode. The obtained impedance spectra for PANINFs-Cl based electrodes and unmodified electrode are shown in Fig. 12. As seen in Fig. 12, all obtained impedance spectra showed the same shape, but in different size. They had high-frequency semicircle connected to the bulk resistance (R b ) of the ion-selective membrane and its geometric capacitance (C g ) (Horvai et al. 1986) and low frequency branch, which arose from the double layer capacitance and charge transfer resistance at the interface between polymeric membrane and the inner GCE electrode. The bulk membrane resistance (R b ) determined from high frequency semicircle diameter was relatively low, even for unmodified electrode GCE/ISM due to presence in the membrane phase of ion-exchanger TDMANO 3 in relatively high concentration. After membrane modification with the PANINFs addition, the resistance of the membranes decreased gradually as the content of nanofibers increased. A similar decrease in the membrane resistance was observed in the case of  (Table 2). Larger differences in the impedance spectra were observed in the low frequency range. As the content of nanofibers in the membrane increases, the low-frequency branch of the spectrum will decrease significantly, which is related to the increase in the double layer capacitance. The low frequency capacitance C lf determined from the low frequency limit on the basis on following dependence C lf = 1/(2лfZ"), where f = 0.1 Hz was 0.85 µF for unmodified GCE/ISM electrode. The C lf value increased to the values of 1.1; 1.4 and 3.0 µF for electrodes GCE/ (ISM + 0.5%PANINFs-Cl), GCE/(ISM + 1%PANINFs-Cl) and GCE/(ISM + 2%PANINFs-Cl), respectively. Of course, it was achieved due to the presence of nanofibers in the membrane. The greatest increase in capacitance to the value 11 µF was observed for the electrode GCE/PANINFs-Cl/ ISM, in which nanofibers were used as an intermediate layer.
Analogous results were obtained for electrodes modified with PANINFs-NO 3 . The obtained results clearly show that the use of PANI nanofibers in the construction of electrodes improves their electrical parameters, especially increasing the electrical capacity, thanks to which the transfer of the charge between the membrane and the internal electrode is facilitated and the electrodes show a stable and reproducible potential (Table 2).

Analytical application
Practical usefulness of PANINFs based electrodes was tested by determination of nitrates content in drinking water, river water and ground water samples. An important advantage of the potentiometric methods is the lack of necessity or only minimal sample preparation before the measurements. Therefore, water samples were analyzed as soon as collected using the calibration curve method. The only modification was the addition of 0.5 ml of 1 mol L −1 Na 2 SO 4 solution to 50 ml of the sample in order to ensure constant activity of the ions in the solution (Na 2 SO 4 as an ionic strength buffer). The obtained results are summarized in Table 3, where it can be seen that there is a good agreement between the nitrate ions content determined with the proposed electrodes and the spectrophotometric method. This confirms that the obtained electrodes are a cheap and simple analytical device for nitrates monitoring in various water samples.

Conclusions
The successful usage of PANINFs for the construction of ion-selective electrodes is presented. It was found that the use of PANI nanofibers had a positive effect on the operation of potentiometric sensors. In particular, the stability and reversibility of the electrode potential has improved significantly. The electrodes modified with PANI-Cl nanofibers were characterized by a wider range of linearity of the calibration curves (1 × 10 -6 -1 × 10 -1 mol L −1 ) and lower limits of detection. Both kinds of sensors with PANINFs-Cl and PANINFs-NO 3 as an intermediate layer were able to work in a wide range of pH (4.0-12.5) of solutions and under variable lighting conditions and the presence of gases (O 2 ) in the solution. The electrodes were used successfully for a period of 2 months and continued to function properly after that time. Obtained all-solid-state electrodes based on PANI nanofibers are suitable for nitrate monitoring in real water samples. Differences in the parameters of electrodes based on different PANI nanofibers result from differences in the microstructure of these nanofibers. The successful usage