Inline monitoring of high ammonia concentrations in methanol with a customized 3D printed flow cell

A novel system for inline monitoring of ammonia (NH3) suitable for methanol is presented. An optical ammonia sensor with a response time t90 of 33 s was combined with a tailor-made, 3D printed flow cell and allowed efficient measurements under continuous flow. The optical sensor includes a fluorescent indicator dye that is physically immobilized into a polyurethane hydrogel. A protective layer made of hydrophobic polyether sulfone (PES) shields the ammonia sensitive material against interfering substances and guarantees long-term stability in methanol. The sensor can be read out via a compact phase fluorimeter. Measurements in continuous flow are enabled by a flow cell manufactured via selective laser melting (SLM) of stainless steel. Stainless steel was chosen for the flow cell due to its good heat transfer properties and relatively good chemical resistance of NH3 in methanol. The measurements were successfully carried out with ammonia concentrations between 0.3 and 5.6 mol L− 1 NH3 in methanol at 25 °C up to 80 °C. Additionally, different flow-rates (0.5–2.0 mL min− 1), varying internal pressure (0.5–2.0 bar) as well as reversibility of the measurements at 25 and 60 °C were studied in detail. The sensor did not degrade indicated by sufficient signal and low drift over a period of two weeks, thus indicating the high potential of the novel set-up for real-time measurements in continuous flow applications.


Introduction
Monitoring of ammonia is an important tool in various technological and industrial applications. Because of its toxic and hazardous characteristics this compound is not easy to handle. In chemical industry as well as in scientific research, ammonia is a widely used reagent in different reactions [1][2][3]. It is a key component in the synthesis of heterocyclic compounds [4][5][6][7], derivatization of carboxylic acid derivatives into acid amides [8] and further into nitrile compounds [9,10] as well as reductive amination to generate various amine species [11,12] or amination of aryl halides [13][14][15][16]. Some of these reactions can be substantially improved by transferring them into flow chemistry where the control of various parameters such as different reactants (in this work ammonia), solvents and reaction parameters is desirable. Most ammonia sensors operating in industry measure in the gas phase and are often used in leakage alarm systems [17][18][19][20][21][22][23]. These types of ammonia sensors are well established and available by various suppliers on the market but reaction monitoring by using ammonia sensors which operate in solution are rare. Here, the ion selective electrode (ISE) is one described method. This electrode can measure ammonia very precisely and in low concentrations (up to 0.05 mol L − 1 ) in aqueous media and is therefore often used in environmental or medical applications [24]. Nevertheless, it is very difficult to use this electrode for reproducible measurements in organic media. It is influenced by different parameters which are hard to handle in organic solvents. Additionally, it measures the ammonium ion and due to the fact that there is hardly any data on the ammonia ammonium equilibrium in organic media because of the lack of free protons in solution it is difficult to verify the exact ammonium ion concentration in such media [25]. Also several luminescent based ammonia sensors working in aqueous systems have been published in the last two decades, [26][27][28][29][30][31][32][33], to the best of our knowledge, so far no optical ammonia sensors have been reported in literature as being suitable for measurements in organic solvents.
To overcome measurement limitations, this work presents an optical ammonia sensor that is able to operate in methanol under continuous flow. The sensor is based on a fluorescent BF 2 -chelated tetraarylazadipyrromethene (aza-BODIPY) dye which is incorporated in a polyurethane hydrogel layer [34]. A porous protection layer on top of the sensing layer shields the sensing material against interfering substances such as protons relying on variations in the pH of the sample and other hydrophilic, ionic, gaseous species which can deprotonate the dye. The sensor's mechanical design is based on an existing arrangement which fixates the membrane to an optical fibre [28]. Since the overall goal of this work was to apply the sensor in continuous flow applications, a suitable way to implement it in these set-ups was needed. The chosen solution for this challenge was a 3D printed flow cell made of stainless steel via selective laser melting (SLM) because of its wide solvent capability, well post-processing properties and prior knowledge for manufacturing. This technique provides the needed freedom of design as well as chemical and mechanical resistance to organic solvents as already shown in other flow chemistry applications [35][36][37]. The 3D printable flow cell was designed to accommodate the hole sensor head and guide a fluid stream to the sensor's membrane. The cell guides the analyte through an internal microchannel to the sensor tip. This cell design can also act as a sensor port for future 3D printed reactors and allows similar implementations for continuous flow measurements of ammonia as it was shown in a previous work on oxygen [38].
In this new study, the performance of the developed set-up for sensor and flow cell was studied in a temperature range of 25-80°C and ammonia concentrations between 0.3 and 5.6 mol L − 1 . This concentration range was chosen on considerations on possible chemical reactions [4][5][6][7][8][9][10][11][12][13][14][15][16]. Furthermore, reversibility as well as two system relevant parameters, internal pressure and flow rate, were investigated in detail. The response time of the sensor was studied in batch measurements.

Sensor performance in batch
The sensor response to ammonia dissolved in methanol at concentrations between 0.0007 and 7 mol L − 1 was first investigated in a temperature-controlled vessel and is shown in Fig. 1. This concentration range represents the hole dynamic range of the sensor which is limited by the pK a value of the dyes hydroxy group. The highest NH 3 concentration is limited by the highest commercially available amount of ammonia dissolved in methanol. The schematic design of the developed optical ammonia sensor is shown in Figure S1 b. During a measurement, ammonia is penetrating the hydrophobic barrier and diffuses into the sensing layer where it deprotonates the dye's hydroxy group shutting off its fluorescence. Duallifetime referencing is chosen as readout method. Thereby, the overall phase angle dphi is measured. It originates from the luminescence intensity ratio between the indicator dye with a short lifetime and the reference dye having a comparable long lifetime (further information in ESI). An increase of the phase angle dphi indicates an increase in ammonia concentration and vice versa (Fig. 1a). The sensor shows a fast t 90 , which represents the time the sensor needs for 90 % of the respective maximal signal change, of 33 s and at each measured calibration solution a stable signal, where a plateau of the measured dphi value is reached (Fig. 1b). The relationship between the analyte concentration and the measured signal is described by a typical sigmoid shaped calibration curve ( Figure S2), which can be described by a Boltzmann fit (see Equation S1 ). Since chemical reactions often need high ammonia concentrations, further inline experiments were performed at high analyte concentrations.

Inline measurements in the flow cell set-up
A micro fluidic flow cell ( Fig. 2a-c) was designed to incorporate the sensor arrangement for continuous flow applications. While the design of the existing sensor head (Fig. 2d) was predefined, [28] a suitable and leak proof way to withstand organic solvents at high concentrations of ammonia (up to 7 mol L − 1 NH 3 in methanol) was needed. This was achieved by utilizing the design freedom given by 3D printing of stainless steel. 3D printing allowed to manufacture a part with internal structures which cannot be created with common machining tools. With this method, the internal channel can have almost any shape and was therefore the perfect possibility to design a flow cell including a reaction channel, fluid connector ports, coolant (water) guidance and a connector port for the sensor, all of these features combined within one part.
The stainless steel flow cell shown in Fig. 2 consists of a two-part system: A thermally controlled base part (Fig. 2a) with a 0.8 mm U-shaped micro channel (highlighted in red, Fig. 2a) guiding the solvent flow to the sensor head which is fixated in a connecting screw and enables the inline ammonia measurements. The solvent channel can be connected to 1/16" capillaries with standard fittings as found for high performance liquid chromatography (HPLC) applications. Temperature control of the flowing solvent and the whole flow cell is possible by a guided coolant flux (water) which passes 2.5 mm channels perpendicular to the solvent flow (Fig. 2b). The sensor head (Fig. 2d) with a diameter of 8 mm can be mounted to the base with the second part, a 3D printed connecting screw. A commercial M6 screw is used to fixate the sensor head with the 3D printed screw (Fig. 2c). Base and connecting screw were sealed by an O-ring (perfluoroelastomer, FFKM, 8 × 1.5 mm). Additionally, all threads were sealed with the aid of polytetrafluoroethylene (PTFE) sealing tape. The U-shaped channel (see Fig. 2a) directing the fluid to the sensor tip allows a fast response of the sensor. As this channel can also be seen as a possible reaction channel in a micro reactor, only slight adaptions will be necessary to directly implement this flow cell in such an application. Therefore, a U-shaped bend similar like within the flow cell and the used sensor housing needs to be added at a suitable position of a micro reactor. This can be done by directly re-using this existing design (Fig. 2a).
To show the applicability of the developed set-up for common reaction temperatures in methanol, the sensor response was measured at 25 (ambient temperature), 60 (close to the boiling point of methanol) and 80°C (above the boiling point of methanol) with an experimental set-up as shown in the ESI Figure S10. As a result, Fig. 3a shows the sensor response curve while measuring inline at 60°C with a flow rate of 1 mL min − 1 of methanol stream. This measurement started with pure methanol and the ammonia concentrations were increased stepwise up to 5.6 mol L − 1 NH 3 by mixing solutions of pure methanol and 7 mol L − 1 NH 3 in methanol with an HPLC and a syringe pump. Corresponding response curves at 25 and at 80°C are shown in the ESI (Figure S4 and S5). At the investigated temperatures, the sensor shows stable signals at each chosen ammonia concentration. These high analyte concentrations bring the sensor to its upper dynamic limit. Above this highest measured ammonia concentration, all hydroxy groups of all fluorescent dye molecules in the sensing layer will be deprotonated by ammonia and the fluorescence is therefore shut off completely. As a consequence, higher ammonia concentrations are not resolved anymore by this sensor. This behaviour is mathematically described via a one-phase exponential decay function (Equation S7) was used as fitting function in the data evaluation process. Figure 3b shows the calibration plots at the different temperatures indicating a negligible temperature influence on the sensor's performance. We clearly see an influence of the set-up on the response time of the sensor at lower concentrations. Here, the response time t 90 increases up to 73 s when changing the ammonia concentration from 0.6 to 1.2 mol L − 1 . Contrary, there is no considerable difference at higher ammonia concentrations (33 s in batch vs. 38 s in flow). This behaviour might be attributed to the slow mass transfer of a compound which is needed to equilibrate the sensor interaction site with analyte molecules at low analyte concentrations. This presumption is based on the time which is needed to equilibrate the sensor membrane.
Sensor reversibility and stability at 60°C is shown in Fig. 4. The sensor was exposed to alternating ammonia concentrations of approximately 2.0 and 1.2 mol L − 1 . The sensor signal shows barely any drift at the higher concentration and only a small one at the lower concentration. A similar result is achieved after seven cycles at 25°C (see Figure S6).
Reliable and trustworthy data can only be achieved when the system parameters (internal pressure, flowrate) do not influence the sensor signal. Different flow rates ranging from 0.5 up to 2.0 mL min − 1 of the m e t h a n o l s t r e a m a t 2 5°C w e r e i n v e s t i g a t e d ( Figure S7). The flow rate settings were on the one hand limited by the maximal force of the syringe pump which does not cause bending at the plastic syringe and on the other hand reduced to the fact that ammonia needs an internal pressure to prevent the creation of In addition to these experiments, the influence of changing internal pressure at the sensor on its signal at a defined NH 3 concentration at 25°C was investigated ( Figure S8). The studied internal pressure values of 0.5 up to 2.0 bar show only a negligible impact on the sensing signal of the ammonia sensor. No long-term effect on the sensing properties were detected afterwards.

Conclusions
A novel methanol resistant optical ammonia sensor in a new and self-designed 3D printed stainless steel flow cell was tested successfully under different conditions. Our measurements show the huge potential of inline ammonia sensors in continuous flow systems working with methanol. This work is a first proof of concept for optical sensors for the detection of ammonia in a polar organic solvent. We know that solvent vapours which can diffuse through the hydrophobic porous membrane influence the swelling behaviour of the hydrogel. These differences in swelling influences the respective sensor baseline signal and therefore the calibration. Therefore, we are planning to investigate different organic solvents which are essential for organic synthesis and can be applied in flow chemistry. Promising options are ether, ethanol or acetone. Tetrahydrofuran in contrast, will partly dissolve the used hydrogel which causes a degradation of the sensor. The signal of the ammonia sensor is only minimally influenced by varying temperatures up to 80°C and shows no dependency on different flow rates up to 2.0 mL min − 1 and varying internal pressures up to 2.0 bar. However, the response time of the sensor within inline measurements is especially at low ammonia concentrations (below 1 mol L − 1 ) increased compared to batch measurements. Detailed experiments at higher pressures (above 20 bar), which are essential for applications in chemical industry, and faster flow rates (above 5 mL min − 1 ) are planned for the future. The reversibility measurements showed promising results up to 60°C indicating a long-term stability of the sensor in methanol. Furthermore, with the developed flow cell it is possible to reuse its design in other (3D printed) reactors and thus, for example the real-time monitoring of reaction progresses inside customized microreactors.

Sensor manufacturing process
We used a layer-by-layer concept for sensor manufacturing (see Figure S1 b). The sensing layer consists of a fluorescent BF 2 -chelated tetraarylazadipyrromethene dye (aza-BODIPY, Figure S1 a) which is mixed with an internal reference dye (silanized Egyptian Blue). Both are physically immobilized into in a polyurethane hydrogel (HydroMed D4) and knifecoated (25 µm wet film) on top of a transparent support. This enables the system to be read-out via a compact phase fluorimeter and also allows for dual-lifetime referencing (DLR) as the referencing method [39]. A protective layer out of hydrophobic PES at the top shields the sensing material against interfering substances and guarantees long-term stability in methanol. After the knife-coating process, a hydrophobic protection layer is laid on the still wet polymer layer. After two hours, the organic solvent is fully evaporated and the sensor can be stored in the measuring media. After additional 24 h of storing in methanol, the sensor is ready to be used for calibration. As read-out device a commercially available compact phase fluorimeter is used. This is based on a luminescence lifetime measurement principle in the frequency domain and yields in an overall phase angle signal dphi. More detailed information on the sensor composition and read-out method can be found in the supplementary information.

3D printed flow cell
The newly designed flow cell consists of two parts. One is equipped with a fluid guiding and temperature-controlled flow cell and the second one is based on a connecting screw for mounting the sensor tip inside the flow cell (Fig. 2). A special focus was kept on the possibility to use standard laboratory equipment like flat bottom ¼"-28 connectors for 1/16" capillaries and simple hose nozzle connectors for the temperature regulation with a thermostat. The design process as well as a first test version made of polylactic acid (PLA) can be seen in Figure S9. Before flow cell and connecting screw can be additive manufactured, it was necessary to generate a standard triangle language (STL) file and to prepare external support structures, in case of the stainless steel version generated by Materialise's Magics software, which connect the parts to the building platform.
A selective laser melting (SLM) system from EOS (Krailling near Munich, Germany) was used for the additive manufacturing of the flow cell and the connecting screw. This system utilizes an Ytterbium fibre laser with 400 Watt maximum power input, which scans through each of the 40 µm high sliced layers of a 316L stainless steel powder bed with a mean particle size of 35.9 µm. After printing, post-processing needed to be carried out including cutting the parts from the  Funding Open Access funding provided by Graz University of Technology.

Declarations
Conflict of interest The authors declare that they have no conflict of interest.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.