Introduction

Zinc oxide (ZnO) has electromechanical and photocatalytic properties that have been used in a wide range of applications, including piezoelectric and photocatalytic devices, transparent conductive electrodes for solar cells, and environmental gas sensors1,2,3,4,5. For example, Shaban used Na-doped ZnO nanostructures for enhanced CO2 detection, and Saraswathi demonstrated that DC magnetron sputtered films of polycrystalline ZnO can be used for highly sensitive humidity sensors6, 7. Although the environmental effects on the electrical properties of ZnO films are well studied, the response mechanisms are still not fully understood. The resistive and capacitive responses of ZnO films to gases typically require operational temperatures above 350 °C to provide sufficient energy to ionize the surface oxygen atoms, and promote adsorbate desorption, and thus improve recovery and sensitivity of the sensor. However, high temperatures are not compatible with flexible polymer substrates, can lead to grain growth and long-term drift problems in ZnO films. UV irradiation of ZnO films has been used as a viable alternative to activate the surface and induce photo-catalytic analyte desorption8,9,10,11,12,13.

The resistive response of an n-type ZnO film relies on the interaction between oxygen vacancies at the ZnO surface and charge accepting (or donating) adsorbate molecules. O2 and H2O both compete for the same adsorption sites on ZnO surfaces; however, the adsorption mechanisms differ. Under low thermal activation (T < 100 °C) molecular oxygen (O2) physisorbs to the ZnO surface resulting in minimal resistance response, since O2 is not an efficient electron trap. At temperatures exceeding 350 °C, however, O2 is ionized to form efficient surface electron traps, such as O2 and O, which diminishes the thickness of the conduction layer (grain boundary), increases the thickness of the depletion layer (grain), and consequently results in increased resistance1, 2, 14. On the other hand, at low temperatures water adsorbs to the ZnO surface in molecular form (H2O) via hydrogen bonding or physisorption, while at higher temperatures water chemisorbs to the ZnO surface through an acid/base reaction at a Lewis base site. Chemisorbed water forms a surface hydroxyl (-OH) functionality, leaving an isolated proton to react with lattice oxygen and form another surface hydroxyl15,16,17. Adsorbed oxygen and water species have large dissociation energies, resulting in negligible desorption and poor reversibility of sensor response at low temperature18, 19.

Irradiation of ZnO by photons with an energy greater than the band gap (3.37 eV) results in the formation of electron-hole pairs in the depletion region. Under vacuum, the photogenerated-electron induces desorption of surface oxygen species, and decreasing the energy barrier between ZnO grains, leading to lower film resistance, Fig. 1A 20, 21. Oxygen molecules can be ionized by the photo-generated electrons, resulting in the chemisorption of ionic oxygen to the ZnO surface (O2 + e (hv) → 2 O ads), leaving photo-induced holes in the depletion layer, thereby increasing the film resistivity22, 23. The photo-induced holes can react with chemisorbed oxygen species, leading to molecular O2 desorption from the ZnO surface. The process leaves an excess of electrons in the conduction band, diminishes the energy of the depletion layer, thus decreasing ZnO film resistivity, Fig. 1B 13, 24.

Figure 1
figure 1

Schematics of the conduction (grain) and depletion (grain boundary) regions of ZnO illustrates the changes in valence (Evb) and conduction (Ecb) band structure of ZnO nanoparticles between dark and UV conditions while under vacuum (A), with exposure to oxygen gas (B), and with exposure to water vapor (C).

The adsorption of water vapor at the ZnO surface displaces adsorbed atomic and molecular oxygen, releasing electrons into the depletion layer, and resulting in decreased resistivity14. Under UV irradiation, isolated H2O molecules are physisorbed on the ZnO surface without dissociation and hydrogen bonding of successively adsorbed H2O molecules induces dissociation of adjacent water molecules, removing both photogenerated electrons and holes, Fig. 1C 25, 26. Since interaction of O2 and H2O with ZnO proceeds via different mechanisms, it is expected to lead show observable difference in ZnO electrical response at room temperature. However, it is not typically possible to differentiate between O2 and H2O response from the electrical resistance response alone, regardless of whether thermal- or UV-activation is implemented.

Here we report on an approach to differentiate between O2 and H2O responses using a combination of statistical methods and machine learning techniques applied to impedance responses of ZnO films under dark and UV-irradiation at room-temperature. Our molecular dynamic (MD) simulations show that the adsorption energy on ZnO differs for O2 and H2O, and that the adsorption energy is ultimately influenced by the extent of ZnO hydroxylation, as well as the presence of Zn and O vacancies. We argue that by integrating resistive, capacitive, and time-dependent sensor responses with statistical analysis, it is possible to discriminate between analytes which interact with the sensor material via similar, but distinct, mechanisms. Kelvin Probe Force Microscopy (KPFM) measurements confirm that confirm that the adsorption of water on the ZnO surface leads to decrease in surface potential, due to adsorbed water molecules increasing the surface electron density.

Results and Discussion

Pulsed-laser deposition (PLD) of ZnO was found to form a polycrystalline film comprised of c-axis oriented hexagonal ZnO, Fig. 2A. The morphology and crystalline structure of the ZnO films were found to be similar on both polyimide and silicon substrates, substantiating previous reports, thus we focused our efforts on the flexible polyimide substrates27, 28. SEM images show 85 nm tall (film thickness), ZnO columnar structures with diameter ranging from ~5 to ~25 nm, Fig. 2B,C. The electrical properties of ZnO film, and can be modeled as the sum of the contributions of ZnO grains and the grain boundaries, Fig. 1.

Figure 2
figure 2

X-ray diffraction spectra showing the c-axis oriented hexagonal structure of the ZnO film on a polyimide substrate (A). Surface (B) and cross-section (C) SEM images indicated a film of 85 nm ZnO film deposited by PLD on a SiO2/Si substrate at 250 °C.

The ZnO films were exposure to controlled pulses of oxygen gas and water vapor at ambient temperatures while monitoring in plane resistance and impedance response of the films. A series of 60 minute pulses of increasing oxygen pressure and water vapor were introduced into an environmental vacuum chamber (response period). The sample was exposed to vacuum (at 10−6 Torr) for 60 minutes following each pulse (recovery period). The experiments were then repeated under UV irradiation. Figure 3A,B shows that exposure to oxygen or water increased the film resistance, and that UV irradiation leads to partial recovery of the resistance. The resistance response as a function of O2 or H2O pressure is shown in Fig. 3C,D.

Figure 3
figure 3

Resistive response of ZnO films, in dark (black) and UV (Red) conditions, to pulses of increasing pressures of O2 (A) and H2O vapor (B). The pressure of analyte pulses are depicted by blue traces. Green, blue and red arrows represent the point where full impedance spectrum were measured (shown in Fig. 4). Relative resistance responses to O2 (C) and H2O (D) pressure pulses, referenced to vacuum, were determined from the change in resistance from immediately before the pulse to the end of the pulse. UV Irradiation has an exponential effect on the O2 trend, while irradiation did not appear to change the H2O trend, but simply increased the resistive response. The decrease in response to increasing O2 partial pressure is similar to the response of consecutive pulses of a single O2 partial pressures (Figure S2), suggesting that it may be related to deoxygenation of the film during the UV cleaning process, prior to measurements.

Resistance response was found to be proportional to H2O-pressure, for pulses exceeding 14.3 Torr H2O, and it was about 2 times larger for UV-irradiated film compared to response in dark. At pressure pulses <14 Torr H2O the resistance response was negligible. The resistance was partially recovered in the vacuum under UV irradiation, Fig. 3B. The partial recovery of resistance under UV irradiation could be a result of slow photo-induced desorption reactions which requires much longer recovery time to complete the photo-induced desorption reactions of surface oxygen species.

Under UV irradiation the resistance of the ZnO film decreased by a factor of two across the measured range of O2 pressures, whereas the resistance decreased slightly without light. This trend challenges previous reports of the resistance increasing upon oxygen adsorption under UV irradiation. The process of photo induced deoxygenation of the ZnO surface under UV irradiation in the vacuum could lead to oxygen deficient surface22, 23, 29. Each consecutive pulse of oxygen partially regenerates the oxygen associated with the film, the portion of restored oxygen would be removed during the recovery period under continuous UV-irradiation in vacuum. In such a case, the response of successive pulses is expected to decrease exponentially, until the surface of ZnO is fully oxygenated. To verify this assertion, the ZnO film was exposed to six consecutive, two minute pulses of 0.75% O2 and 2% H2O. This confirms that UV irradiation in vacuum depletes oxygen at the ZnO surface, and the observed response is a result of the partial recovery of oxygen vacancies in the ZnO film, Figure S2. Our calculations, discussed below, predict that the energy of O2 adsorption on a surface with O-vacancies is 0.2 eV higher compared to a clean surface.

The resistance of the ZnO film increased during exposure to either O2 or H2O, so the resistance response alone does not allow differentiation between the two analytes directly. The observed response and recovery time ae associate with the dynamics and reversibility of the interaction between analytes and ZnO surface were estimated by fitting data with an exponential decay, Table S1. The sensor response and recovery time for H2O and O2 were found to be independent of the analyte or its partial pressure under dark conditions. Conversely, under UV irradiation the recovery time constant was found to be shorter while recovery time longer, for both O2 and H2O, compared to dark conditions. Under dark or UV conditions, a time-dependent drift in resistance was observed, even under bias of 100 mV across the ZnO. The possible mechanism behind this phenomenon is electric field-induced ion migration, and the aggregation of ionized adsorbates toward the anode or cathode, and from photocatalytic desorption of oxygen from the ZnO lattice30, 31.

Impedance spectroscopy was used to gain a better understanding of the frequency dependent response mechanisms of O2 and H2O adsorption in dark conditions and under UV irradiation, in the frequency range from 10 Hz to 8 MHz. The impedance responses of ZnO films were measured at the end of each O2 or H2O pulse, as depicted by color-coded arrows in Fig. 3. The frequency dependent impedance spectra, Figure S3, show that complex impedance and phase shift are sensitive to oxygen and water in the frequencies between 1.5 kHz and 500 kHz, with resistive-like behavior below 40 kHz, and an optimal capacitive response at 150 kHz.

Nyquist representation of the impedance spectra measured during vacuum, response, and recovery stages display spectra comprised of two overlapping semi-circles with different time constants, Fig. 4. The high-frequency part of the Nyquist plot (low impedance semi-circle) was assigned to charge transport through the ZnO grains (RG, CG), while the low-frequency component (high impedance semi-circle) was assigned to charge transport through the grain boundary (RGB, CGB)32, 33. The Nyquist representations of the impedance spectra were modeled using an equivalent circuit consisting of a contact resistance component (Rc) in series with two sets of a parallel RC components, RGCG and RGBCGB, corresponding to charge transport through the grain and the grain boundaries, respectively, Fig. 4A-inset34,35,36,37. The values of the RC parameters determined from equivalent model fitting, were plotted as a function of analyte partial pressure, Fig. 5. The sensitivity of each RC component to changes in O2 or H2O was determined by the slope of a linear fit. Under UV irradiation, the resistive and capacitive responses to O2 and H2O were found to be defined by changes in the values of RG and CGB. The increase in the values of RG and CGB with increasing O2 pressure (characterized by slopes of 90.9 Ω/Torr O2 and 0.3 nF/Torr, respectively) can be attributed to the formation of ionic oxygen species by reaction between adsorbed O2 and photogenerated electrons, consistent with previous reports14. The response contribution of RG and CGB was found to be greater for H2O than for O2 (204 Ω/Torr H2O and 0.8 nF/Torr H2O, respectively), which is likely due to the dissociative reaction of H2O with both photogenerated electrons and holes, as previously noted by Meyer and Dulub25, 38. Under dark conditions, CG is independent of O2 and H2O pressure, while under UV irradiation CG becomes pressure dependent, with slopes of −0.09 pF/Torr O2 and 0.6 pF/Torr H2O, indicating that the dielectric constant decreases with O2 adsorption and increases with H2O adsorption. This complex behavior may stem from changes in the surface polarization due to formation of polar species such as ionic oxygen and dissociated water39.

Figure 4
figure 4

Impedance spectra represented as Nyquist plots of ZnO films measured during O2 (A), and H2O (B) pulse experiments under UV irradiation. The solid green points were measured during the initial vacuum, open blue circles during the first pulse (1.7% O2 (A) or 11.25% H2O), and open red squares during the recovery vacuum after the pulse. The solid lines model the data using the equivalent circuit inset. The corresponding colored arrows in Fig. 3 indicate the time at which each trace was measured.

Figure 5
figure 5

Contributions of the response to pressure from the grain resistance (RG, black) and grain capacitance (CG, red) to O2 (A,B) and to H2O (E,F); and from the grain boundary resistance (RGB, black) and grain boundary capacitance (CGB, Red) to O2 (C,D) and H2O (G,H) in dark conditions and under UV irradiation, indicate that the RG and CGB slopes exceed the RGB and CG slopes in all cases – i.e., the resistive and capacitive responses are dominated by the grain resistance and boundary capacitance.

The interaction of H2O with oxygen vacancies is expected to result in a decrease in surface potential, whereas hydrogen bonding of water at the surface would be expected to result in little surface potential change25, 40. Su et al. showed that the formation of oxygen vacancies at the ZnO surface alters the work function of the film, leading to an increase in the surface potential40. Thus, the adsorption of H2O or O2 on ZnO is also expected to modify the surface potential due to changes of the surface termination of the ZnO surface41.

To determine if water is adsorbed at oxygen vacancies or if it is hydrogen-bonded to the film surface, we used KPFM to monitor the surface potential of a single 5 µm2 area of the ZnO films as the relative humidity (RH) was increased42,43,44. The surface potential of the ZnO film was found to be dependent on the RH of the environment, Fig. 6A,B. The surface potential, averaged over the sample area, Fig. 6C decreased with relative humidity up to 14% RH, after which the surface potential plateaued, suggesting the changes observed until a monolayer is formed. The averaged AFM topography, Fig. 6C-inset, reveals that no significant height changes occurred in conjunction with the changes in RH. A few local areas showed much less of an effect to RH changes, which is likely due to small particles that are only loosely bound to the surface, and are not part of the continuous film. To verify that the surface potential changes were not due to changes in the work function of the measurement tip, relative changes between the loosely bound particles and the ZnO film was characterized, revealing a similar trend, Figure S4. The decrease in surface potential indicates that the ZnO surface becomes more electron rich with increasing RH, consistent with a change in surface functionality. This suggests that oxygen species, such as hydroxyl functionalities, may have replaced surface oxygen vacancies resulting in a more negative ZnO surface. Although the surface potential plateaued above 14% RH, the resistance and impedance properties continued to change at higher RH values. A more in-depth study of local changes to the electronic structure of metal oxide films in relation to the local environment is currently in progress to develop a better understanding of this phenomenon.

Figure 6
figure 6

False color coded KPFM surface potential maps of a ZnO film on a polyimide substrate in a RH controlled Ar atmosphere at 0% RH (A) and 30% RH (B). Large aggregates are detached from the conductive network of crystallites, and thus do not show as much change in surface potential. Comparison of the averaged surface potential at each water concentration (C) shows the surface potential becoming increasingly negative with increasing humidity, which is expected from a reaction between water and the ZnO surface. Evidence of saturation above 14% likely corresponds with the formation of a water monolayer. No changes in the average AFM height (C, inset) to RH show that the measured surface potential response is not an artifact related to changes in film thickness. The topography of the ZnO surface is shown for reference (D).

The resistive and capacitive response of ZnO depends on the specific interaction with the analyte. These interactions can be characterized by the energy of analyte adsorption, which is dependent on the surface termination (Zn or O), the density of Zn and O vacancies, and the presence of chemisorbed water molecules, i.e. the extent of surface hydroxylation. We used the Large-scale Atomic/Molecular Massively Parallel Simulator (LAMMPS) with a reactive force-field (ReaxFF) for Zn-O-H systems to estimate the effect of the vacancies in a ZnO (1010) surface on the adsorption of H2O and O2 molecules, with and without a monolayer of absorbed water45. A supercell consisting of 112 ZnO formula units (surface area 13.2 × 21.1 Å) was constructed and minimized in two dimensions using the Grand Canonical (GC) method with periodic boundary conditions. The third dimension was expanded to 55 Å and made non-periodic. ZnO surfaces with either zinc or oxygen atom vacancies were minimized in the same manner. For each type of surface we also considered a completely hydroxylated surface, with 100% of the adsorption sites having an adsorbed water molecule. Each calculation was done with the assumption that 2 underlying atomic layers were fixed.

The calculated absolute energy and defect energy values, as well as the resulting adsorption geometries are shown in Figure S5. Adsorption energies were calculated as the difference between the adsorbed configuration energy and the sum of the corresponding surface and molecule energies, summarized in Table S2. We find that the optimal adsorption geometry of a water molecule on an ideal ZnO surface closely matches previously reported geometries46. The resulting binding energy of such a configuration was found to be 1.11 eV, which was somewhat higher than the 0.94 eV previously found from density-functional theory calculations38.

Defect energies were calculated as the difference between total energy of the corresponding ideal surface and the energy of the surface with a vacancy. Oxygen defect formation is less favorable than zinc defect formation, but results in higher adsorption energy compared to the surfaces of the same type without defects or with zinc vacancies (Figure S5). The simulations show a different adsorption geometry of water molecules interacting with an oxygen vacancy lattice than with an ideal lattice, which corresponds more closely to the coordinate OH configuration described by Hu et al.47.

Hydroxylation of the surface results in a significant decrease in adsorption energy for both H2O and O2. On a clean surface, we observed an energy difference of 1.65 eV, depending on the defect, whereas the difference in adsorption energy between H2O and O2 on a hydroxylated surface (which more closely resembles a typical ZnO sensor surface) is only 0.78 eV, making experimental differentiation between the analytes difficult to determine. We also find that the adsorption energy on a surface with oxygen vacancies is 55% higher than on one without vacancies, which is in agreement with Hu et al.47. Adsorption of a single water molecule on a hydroxylated ZnO surface with an oxygen vacancy is 69% more energetically favorable than that on an ideal hydroxylated surface, which is in agreement with the 58% higher adsorption energy shown by Hu et al., and supports their conclusion that additional binding sites are created due to oxygen vacancies47. As previously discussed, the adsorption of either O2 or H2O on the ZnO surface will alter the electronic properties of the ZnO film, but the differences in adsorption energy between H2O and O2 result in resistive and capacitive signatures unique to each adsorbate.

As previously discussed, the migration of electrons to the surface due to water adsorption, explains the observed change in RG, while the change in surface functionalities could explain the observed changes in CGB. Thus, adsorption of water to the ZnO surface alters both the film resistance and the film capacitance. Furthermore, either resistive or capacitive measurements (below 40 kHz, or at 150 kHz, respectively) could be used for the measurement of O2 and H2O by ZnO films. However, differentiation between the two analytes is difficult directly from the resistance response. We argue that it is feasible to differentiate between the responses to H2O and O2 by using advanced statistical analysis algorithms.

Indeed, using machine learning and statistical analysis, we were able to distinguish between H2O and O2 analytes under dark and UV-irradiated conditions, even when the ZnO resistance does not reach steady-state conditions between the gas/vapor pulses. We extracted 4 predictor variables from the ZnO resistance response shown in Fig. 3: the resistance growth time constant during the response to gas/vapor (τres), the resistance decay constant during recovery (τrec), the resistance change in response to gas/vapor exposure (ΔRres), and the resistance change during recovery (ΔRrec). We defined 4 classes of environmental conditions: H2O in dark conditions (H2Odark), H2O under UV-irradiation (H2O), O2 under dark condition (O2-dark), and O2 under UV-irradiation (O2-hν). Using a support vector machine (SVM), a supervised machine-learning model with a quadratic kernel function implemented in the Matlab classification learning application, we demonstrated that is it possible to distinguish between the 4 classes of environmental conditions solely by analysis of the ZnO resistive response (Fig. 7a,b). Principal component analysis (PCA) was performed on the 4-dimensional predictor matrix to obtain optimized weights for initialization of the SVM. The optimized SVM correctly predicts the local environmental conditions at a ~95% confidence level. An example of SVM results is shown in the form of a confusion matrix in Fig. 7c. H2O is the only condition which frequently produces a classification error for H2O and O2 exposure under UV-irradiation, primarily due to the similar values of τrec and ΔRres.

Figure 7
figure 7

Example of LDC model used to distinguish between H2O and O2 environments in the dark and under UV irradiation in 2-dimensional τres-ΔRrec parameter space. (a) Example of environment classification using a CDC model in τrec-ΔRrec space. (b) Example of a confusion matrix for classification results using linear and cubic SVM learning. (c) The error corresponds to the point identified by the red arrow in (b).

To investigate the performance of other classification techniques, we implemented a quadratic discriminant classifier (QDC) using diagonal covariance regularization in the Matlab classification learner application. Using only τres and ΔRrec, the QDC classifies 100% of the predictors without the need for PCA or other higher dimensional analysis. As shown in Fig. 5B, the ZnO responses to all 4 conditions (H2Odark, H2O, O2-dark, and O2-hν) can be distinguished by QDCs, enabling identification of H2O/O2 and detection of UV light. Characterization of the ZnO response by the QDC is less computationally-intensive than analysis by the SVM because it does not require data preprocessing using PCA, and it omits τrec and ΔRres inputs, which confines predictor variables to a 2-dimensional parameter space. The vertical arrow in Fig. 7b identifies the point which was classified incorrectly by the SVM. It is likely that the error is avoided by the QDC because lower-dimensional parameter space minimizes the probability of overfitting. The results shown here demonstrate that even in the absence of steady-state, and reversible electronic responses, ZnO resistance changes can be used for distinguishing between H2O and O2 in the dark and under UV irradiation.

Conclusions

We have shown that the changes in the electrical properties of ZnO devices fabricated from low-cost, biologically-derived nanoparticles can be used to effectively monitor environmental changes in O2 and H2O. The distinct adsorption energies between O2 and H2O on polycrystalline ZnO indicate that these adsorbates interact with the ZnO surface through distinct mechanisms. Under UV irradiation O2 reacts with photogenerated electrons resulting in chemisorption of ionic oxygen to the ZnO surface. On the other hand, H2O reacts with both photogenerated holes and electrons from the depletion layer, resulting in dissociation and thus alteration of the surface polarization, ultimately resulting in a larger impedance response, as compared to O2. Grain resistance and grain boundary capacitance of polycrystalline ZnO film dominate the response of both O2 and H2O in dark and under UV irradiation, while response from the grain boundary resistance and grain capacitance are only significant under UV irradiation. By using statistical and machine learning approaches we have demonstrated that electrical signals (steady state and dynamic sensor response and recovery) can be used to discriminate between the analytes, as well as the dark/UV irradiated conditions under which the measurements were made. MD simulation of polycrystalline ZnO films show that Zn and O vacancies have deterministic effects on the energy of adsorption of O2 and H2O, and thus allow for further tunability of the sensor response.

Methods

Bacterial-derived ZnS nanoparticles were synthesized through biological nanofermention by abiotic Thermoanaerobacter sp. X513, using previously reported methods48,49,50. The ZnS nanoparticles, Figure S6, were thermally oxidized at 800 °C for 5 hours under continuous flow of oxygen at 300 SCCM, and the complete oxidation of ZnS to ZnO was verified using X-ray diffraction (XRD) and Energy-dispersive X-ray spectroscopy (EDS), showing no detectible residual ZnS. ICP analysis was performed on the bacterially-synthesized ZnS and the oxidized ZnO to verify purity of the samples, Table S3, and indicate that no detectable contaminates are present from the bacterial growth media or through the oxidation process. After oxidation, the ZnO was pressed into a ¾” pellet by uniaxial cold-pressing at 7 tons, and this pellet was used to prepare ZnO films by pulsed laser deposition (PLD).

Pulsed-laser deposition (PLD) of ZnO films can result in film morphologies ranging from nanoparticles or nanowires to thin films, depending on the PLD conditions, such as background pressure and substrate temperatures51, 52. We focused on ZnO films synthesized in conditions suitable for flexible substrates (250 °C and 5 × 10−6 Torr background pressure)52, 53. Prior to growth, polyimide (Kapton) substrates (2 cm × 2 cm) were consecutively rinsed and sonicating in water, isopropanol, and acetone for 15 min each, and then dried under N2 gas. The substrates were further cleaned for 5 minutes in an UV Cleaner (No. 42, Jelight Company Inc., Irvine, CA), and then affixed to a temperature controlled heater, set to 250 °C in a PLD system. The target-to-substrate distance was fixed at 5 cm. The ZnO films were deposited in conditions suitable for flexible substrates and high conductivity, 250 °C and 5 × 10−6 Torr background O2 pressure and consisted of 5000 pulses from a 248 nm excimer laser, operated at 1 Hz. The spot size of the laser on the ZnO target was 1.8 mm2, resulting in a fluence of 3.5 J/cm2. The target was rotated continuously at 10 RPM to avoid target pitting.

Structural characterization of the films was performed using a ZEISS Merlin Scanning Electron Microscopy (SEM) and a PANalytical powder diffractometer (XRD). The ZnO films were found to be highly textured, columnar structures with the hexagonal crystal basal plane parallel to the substrate surface. Analysis of the XRD data indicated the average crystallite size ranged from 5–25 nm and the film thickness was measured to be 85 nm by SEM, as shown in Fig. 2. Elemental composition of the film was characterized by energy-dispersive X-ray spectroscopy, and is solely composed to Zn and O, Figure S7, with C, Al, and Si signals originating from the carbon tape and the sample stage. Surface potential measurements were performed by Kelvin Probe Force Microscopy (KPFM) using a commercial Atomic Force Microscope (AFM) – i.e., a Cypher ES (Asylum Research an Oxford Instruments Company).

Electrical characterization of the films was performed after electron beam deposition of electrodes (5 nm Ti and 50 nm Au) on the ZnO surface. The resulting electrodes were 1 mm × 5 mm, with a gap of approximately 0.5 mm between them. Silver paste was used to affix wires to the electrodes. Resistance and impedance measurements were recorded using a Keithley 2420 SourceMeter, and Zahner IM6 impedance analyzer, respectively. The measurements were conducted in a special environmental system that was co-developed with Surface Measurement Systems (London, UK), hereafter referred to as the environmental chamber. The measured electrical properties between the two surface electrodes were dominated by in-plane charge transport, and thus the electrical properties were modeled as the sum of the electrical properties of the grain and grain boundaries of the ZnO crystallites.

The high binding energy between ZnO and O2/H2O is expected to limit desorption, so UV light from an 8 Watt mercury lamp was used to facilitate desorption and recovery. UV irradiation of the ZnO film resulted in an exponential decrease in film resistance, likely due to the photocatalytic removal of surface adsorbates, including oxygen, Figure S1 54. Prior to any environmental response measurements, the ZnO films were first UV-activated for 24 hours (for resistance stabilization) by UV irradiation from an 8 W mercury lamp in a vacuum of 5 × 10−6 Torr.