A Miniature Sensor for Measuring Reflectance , Relative Humidity , and Temperature : A Greenhouse Example

There is a growing interest in using miniature multi-sensor technology to monitor plant, soil, and environmental conditions in greenhouses and in field settings. The objectives of this study were to build a small multi-channel sensing system with ability to measure visible and near infrared light reflectance, relative humidity, and temperature, to test the light reflectance sensors for measuring spectral characteristics of plant leaves and soilless media, and to compare results of the relative humidity and temperature sensors to identical measurement obtained from a greenhouse sensor. The sensing system was built with off-the-shelf miniature multispectral spectrometers and relative humidity and temperature sensors. The spectrometers were sensitive to visible, red-edge, and near infrared light. The system was placed in a greenhouse setting and used to obtain relative reflectance measurements of plant leaves and soilless media and to record temperature and relative humidity conditions in the greenhouse. The spectrometer data obtained from plant leaf and soilless media were compatible with baseline spectral data collected with a hyperspectral spectroradiometer. The greenhouse was equipped with a relative humidity and temperature sensor. The relative humidity and temperature sensor measurements from our sensor system were strongly correlated with the relative humidity and temperature results obtained with the greenhouse sensors (i.e., correlation coefficients > 0.70 or <−0.70), and the mean relative humidity and temperature sensor values were similar for our system and the greenhouse system. Overall, the proposed sensor showed good potential as a tool to measure spectral response patterns of plant and potting mix material and environmental conditions relevant to greenhouse research. The system was inexpensive to build; the total cost of its components was $123.


Introduction
Currently, miniature sensors have become common place in our everyday lives including triggering airbags in cars during a collision, monitoring excessive carbon monoxide concentration in homes and activating alarms when the values reaches a dangerous level, and monitoring weather conditions at weather stations [1].They afford the user an opportunity to measure more than one variable, often required to meet industry and research initiatives.
Over time, the popularity of miniature multi-sensors has grown as tools for collecting agriculture data in greenhouses and in field settings.[2] monitored pH, electrical conductivity, and temperature of tomato plant beds in a greenhouse with a small multi-sensor system.The Arduino microcontroller has become a staple for controlling a multitude of agricultural sensors because it is compact, inexpensive, and easy to use.[3] used it along with sensors to monitor soil-moisture status of field crops for irrigation scheduling and crop-water use studies, to measure daily evaporation-pan water levels for quantifying evaporative demand, and to monitor environmental parameters under forested conditions.
Rapid advances in technology have resulted in the development of inexpensive small-scale spectrometers capable of measuring visible, red-edge, and near infrared light.These regions of the spectrum are valuable for measuring plant health status and soil properties.There is a growing interest in using miniature multi-sensor technology to monitor plant, soil, and environmental conditions in greenhouses and in field settings, with an emphasis on collecting spectral reflectance data.It is hypothesized that a miniature multi-sensor system developed from inexpensive commercial products can adequately measure spectral reflectance properties of plant and soil material and relative humidity and temperature in a greenhouse setting.The objectives of this study were to build a multi-channel sensing system with the ability to measure visible and near infrared light reflectance, relative humidity, and temperature, to test the light reflectance sensors for measuring spectral characteristics of plant leaves and soilless media, and to compare results of the relative humidity and the temperature sensors to identical measurement obtained from a greenhouse sensor.
The six-channel visible and near infrared spectrometers are 4.5 × 4.4 mm in size and are classified as ultra-low power consumption sensors.They have a 16-bit The six-channel visible sensor is sensitive to the 400 -700 nm spectral range with center wavelengths of 450 nm, 500 nm, 550 nm, 570 nm, 600 nm, and 650 nm.The full-width half-maximum of the sensors is 40 nm.The six-channel near infrared sensor is sensitive to the 600 -900 nm spectral range.Center wavelengths of the six sensors are 610 nm, 680 nm, 730 nm, 760 nm, 810 nm, and 860 nm.The full-width half-maximum of these sensors is 20 nm.The visible and near infrared sensitive spectrometers are available in the form of breakout boards, which include sensors and auxiliary electronic components, from Sparkfun Electronics Inc. (Niwot, CO, USA).The AS7262 and AS7263 sensors communicate using the I2C two-wire protocol.Note that, in the field of remote sensing, 610 nm and 680 nm represent the visible red and red-edge region of the optical spectrum [6] [7].
The relative humidity and temperature sensors are grouped together in a compact metal-lid LGA package (BME280, Bosch Sensortec, Germany).The size and height of the sensor module is 2.5 × 2.5 mm and 0.93 mm, respectively.It is classified as a low power consumption device.
The real-time clock calendar breakout board (PCF8523, Adafruit Industries, New York, NY, USA) keeps track of time even if the microcontroller is reprogrammed or losses power.It supports communication using the I2C protocol and connection of multiple devices to the microcontroller via the same two input/output pins and two-wire interface.
The Feather M0 Adalogger (Adafruit Industries) development board consists of a programmable microcontroller and features a built-in microSD card holder.
The Atmel ATSAMD21G18 ARM Cortex M0 is a 32-bit processor that operates at 48 MHz and a 3.3 V power supply.The microSD card holder allows data storage to standard microSD cards, with a maximum memory size of 32 Gb.
The Multiplexer (TCA9548A, Texas Instruments, Dallas, TX, USA) is a combination circuit that selects binary information from one of many input lines and directs it to an output line.The AS7262 and AS7263 spectral sensors both have identical I2C addresses and so cannot both be connected simultaneously to the same I2C two-wire interface.The multiplexer serves as a switching device, allowing the microcontroller to first communicate with one spectral sensor, then switch to communicate with the second sensor.
The digital light sensor (TSL2561, Adafruit Industries) provides precise calculations of lux and can be set up for different gain/timing ranges to detect light ranges from up to 0.1 -40,000+ Lux on the fly.It has both infrared and full spectrum diodes, meaning the user can separately measure infrared, full-spectrum, or human-visible light.
The sensing system is powered by a 3.7 V, 2500 mAh rechargeable lithium ion battery (Adafruit Industries).At each measurement interval, sensor measurements and a date and timestamp are stored on the microSD card.A list of sensing system components and approximate costs is provided in Table 1.The total cost of developing the multi-sensor system was approximately $123.Electrical schematic, prototype board layout, and Arduino microcontroller program are all open-source and freely available from the authors upon request.

Spectral Reflectance Measurements
To provide a standard baseline for evaluating the spectral response of the six-channel spectrometers, hyperspectral reflectance measurements of the kale red Russian plant leaf of interest and of the potting mix were acquired with a contact probe attached to a FieldSpec 3 spectroradiometer (Malvern Panalyti-cal\Analytical Spectral Devices, Boulder, CO, USA).It recorded information in the 350 -2500 nm spectral range.The contact probe had its own light source.
During the measurement, it was in direct contact with the leaf and the potting mix surface.The instrument was calibrated prior to collecting reflectance readings of the selected plant leaf or the potting mix surface.For these measurements, the contact probe was moved to three different regions within the area of interest for the leaf and potting mix surface.Note that the goal was to collect the data in the region viewed by the plant and soil sensors.
Post-processing of the hyperspectral data included the following: 1) splice correcting the reflectance data, 2) averaging the three spectral measurements obtained from the plant or potting mix, 3) aggregating the data to 10-nm bandwidths, and 4) removing spectral bands below 400 nm and greater than 1000 nm.Splice correction and spectral averaging were completed with the ViewSpec Pro Software (Version 6.2, Malvern Panalytical\Analytical Spectral Devices).
Data aggregation and removal of spectra were completed with R software (R version 3.5.1,Feather Spray [8]).

Relative Humidity and Temperature Sensors
The greenhouse (Micro Grow Sensor, Greenhouse Systems Inc., Temecula, CA) contained its own relative humidity and temperature sensors.Those sensors were used as a baseline to compare the relative humidity and temperature sen-sors measurements obtained by the plant and potting mix sensors.For this test, relative humidity and temperature sensor data were recorded manually from the greenhouse sensors since those sensors were not automated to collect continuous measurements.Measurements were recorded at 30-min intervals between the hours of 8:00 am to 4:00 pm.

Statistical Analyses
Pearson correlation [9] was used to assess the relationship between the data recorded by the plant, the potting mix, and the greenhouse relative humidity and temperature sensors.Correlations were considered statistically significant at p ≤ 0.05.Analysis of variance (ANOVA) was calculated to determine if differences existed among the means of relative humidity and temperature sensors.Tukey's test was tabulated to determine which means were statistically different.For ANOVA and Tukey tests, differences were considered statistically significant if p ≤ 0.05.Analyses was completed with the R software.

Plant Spectral Reflectance Properties
Figure 2 shows an image of the kale red Russian plant and the hyperspectral reflectance properties of one of its leaves.The spectral curve was representative of the typical spectral curve of a green plant leaf.In the visible region of the optical spectrum, the maximum reflectance occurred at 550 nm, representing reflection of green light by plant chlorophyll, whereas, the lowest reflectance occurred at approximately 450 nm and 650 nm, representing strong chlorophyll absorption in the blue and the red regions of the optical spectrum, respectively.At approximately 700 nm, the reflectance increased sharply and then plateaued at 760 nm, in the near infrared region of the spectrum.The region between 680 nm to 750 nm is referred to as the red-edge, which is commonly used to monitor vegetation stress.The multispectral spectral regions observed by the six-channel integrated visible spectrometer are represented by the gray bars in Figure 2. Its sensors thoroughly cover the visible region of the spectrum.For a green leaf, the user might expect the greatest value to be recorded by the 550 nm sensor and the lowest values to be recorded in the strong chlorophyll absorption regions at 450 nm and 650 nm.For six different test dates, those qualities were generally observed for the kale red Russian leaf measurements obtained between the hours of 11:00 am and 3:00 pm by the six-channel visible spectrometer of the plant sensor (Table 2).
The multispectral spectral regions observed by the six-channel integrated near infrared spectrometer are illustrated by the red bars in Figure 2. Its sensors records data in the visible, red-edge, and near infrared regions of the light spectrum.Based on the hyperspectral data, the user would expect the lowest values to occur at 610 nm and the highest values to be recorded at 760 nm, 810 nm, or 860 nm.For six separate dates, that general trend was observed for spectral Agricultural Sciences  measurements obtained with the six-channel near-infrared spectrometer of the selected kale red Russian leaf (Table 2).

Potting Mix Spectral Reflectance Properties
Illustrated in Figure 3 is the image of the potting mix and its hyperspectral reflectance curve obtained with a contact probe attached to the hyperspectral spectroradiometer.The potting mix's hyperspectral reflectance curve mimicked a hyperspectral reflectance curve of a typical soil.The lowest hyperspectral reflectance value was observed at 400 nm in the visible region of the optical spectrum, and the maximum hyperspectral value was detected in the near infrared region of the optical spectrum.For the six-channel visible and near infrared spectrometers, the user should expect to see a steady increase in the spectral values.For two test dates, that general increase was observed for measurements obtained by the visible and near infrared spectrometers (Table 3) of the potting mix.Center wavelength for each sensor.

Relative Humidity and Temperature Sensors
For two different dates, Table 4 summarizes the correlation results of the temperature and relative humidity sensors.Statistically significant correlations (p ≤ 0.05) were observed between the relative humidity and temperature sensor data.
Overall, a negative relationship was observed between relative humidity and temperature.Using the greenhouse relative humidity and temperature sensors as the standard for comparison, high (correlation coefficients in the range of 0.70 to 0.89 or −0.70 to −0.89, [10]) to very high correlations (correlation coefficients in the range of 0.90 to 1.0 or −0.90 to −1.0 [10]) were observed between its sensors and the plant and the potting mix sensors relative humidity and temperature sensor readings.
To further substantiate the relative humidity and temperature sensor results, a one-way ANOVA was tabulated to determine if differences existed among measurements obtained with the plant, potting mix, and greenhouse sensors.Statistically significant differences were only observed among temperature sensor data recorded on August 16, 2018.For that date, the greenhouse temperature sensor value was statistically significant different than the plant and the potting mix temperature sensor values (Table 5).

Discussion
The six-channel visible and near infrared spectrometers' sensors were working properly.Their spectral response patterns were similar to the spectral response patterns observed for plant and potting mix reflectance measurements obtained with a spectroradiometer.
Reference [11], in the evaluation of hyperspectral narrowband data, identified twenty-five narrowbands (i.e., ±5 nm) that were not redundant and were useful for classification and modeling of vegetation or agricultural crops.Based on their results, a total of five channels for the six-channel visible and near infrared spectrometers combined would meet that criteria: 550 nm, 570 nm, 680 nm, 730 nm, and 850 nm.Other wavebands meeting the criteria and falling within the sensitivity range of the six-channel visible spectrometer include 490 nm, 515 nm, and 531 nm.No additional bands listed by [11] were within the sensitivity range  of the near infrared spectrometer.According to the manufacturer bulletin [4] [5], the spectrometers can be fabricated to meet a user's specific need if so desired.In the future, potential users may want to have the manufacturer fabricate a visible spectrometer including the 490 nm, 515 nm, or 531 nm spectral bands to enhance its use for vegetation study.
Overall, the potting mix spectra was a mixture of different materials.In a greenhouse setting, temperature and relative humidity are important components.They affect plant growth and productivity [12].Increases in relative humidity are inversely correlated to decreases in temperature.High values of relatively humidity can lead to a reduction in plant growth.In contrast, low humidity values might cause an increase in plant dehydration.Generally, the temperature and the relative humidity information were similar between the fabricated multi-sensor systems and the greenhouse sensors, supporting the use of miniature relative humidity and temperature sensors in a greenhouse setting or other settings requiring automated, continuous temperature or relative humidity measurements.
Advantages and disadvantages were observed in the developed sensor platform.Using battery power, the six-channel spectrometers, relative humidity sensors, and temperature sensors collected data for at least seventy-two hours before changing the battery.We recommend checking the plant leaf for movement out of the sensor field of view at least twice a day, once in the morning and evening.Also, water the plant as needed because wilting of the plant leaf can cause it to move outside the sensors' field of view.For the relative humidity study, we noticed the plant and the potting mix sensors failed to collect data at specific times; missing data could be a glitch in the sensor or an error in the programming.

Conclusion
An integrated multimode sensing system for simultaneous measurements of spectral reflectance properties, temperature, and relative humidity was proposed.
The system simultaneously obtained spectral reflectance, relative humidity, and temperature measurements and stored the data to a microSD card.The measurements recorded by the plant and potting mix multi-sensors were generally in agreement with baseline plant and potting mix spectra obtained with a spectroradiomter and relative humidity and temperature data obtained with a greenhouse sensor.Overall, the proposed sensing system showed good potential as a tool to measure spectral response patterns of plant and potting mix material and environmental conditions relevant to greenhouse studies.Future studies will focus on testing the spectral sensors on plants with different colored leaves, on evaluating the spectral sensors for measuring water quality, and on programming the light sensor to provide enough light for collecting data at night or in dark rooms.
Two identical sensing systems were developed and tested for the study.The sensors were evaluated in a greenhouse located at the United States Department of Agriculture, Agricultural Research Service facility in Stoneville, MS, USA (Latitude: 33.425168˚, Longitude: −90.911875˚).For clarity, the sensing systems are referred to as the plant sensor and the potting mix sensor.The plant sensor was used to record the spectral response of kale red Russian (Brassica napus L.) plant leaves.The plant was grown in the greenhouse.Kale red Russian has broad leaves, allowing us to simultaneously test the visible and near infrared six-channel sensors on the same leaf.During testing, the plant Table1.Cost of sensor components.approximately 20 cm above the leaf of interest (recently matured leaf).The potting mix sensor was used to record the spectral response of wet commercial potting mix (Pro-Mix BX General Purpose Potting Mix, Premier Tech Horticulture, Rivière-du-Loup, QC, Canada).The potting mix was placed in a black seed tray with holes in the bottom.The seed tray was placed in a larger container without holes.Water was added to the larger container and allowed to seep through the holes located on the bottom of the seed tray to keep the soil moist.It was added at 3-day intervals.For the spectral measurements, the sensors were mounted on a ring stand and were positioned approximately 20 cm from the leaf of choice on the kale red Russian plant and from the surface of the potting mix.The sensors were attached to a flexible cable allowing the user to adjust the sensors distance and view of the target.The sensing systems were programmed to record data at 15-min intervals for 24 hours a day.The plant sensor study was initiated on July 10, 2018.The potting mix study was initiated on August 10, 2018.

Figure 2 .
Figure 2. (a) Image of kale red Russian plant; (b) Hyperspectral reflectance (green line) curve of kale red Russian mature leaf (KRR) obtained with a contact probe attached to a spectroradiometer.Gray bars and numbers in the graph represent the 40-nm wavelength and the center wavelength of the integrated six-channel visible spectrometer, respectively.Red rectangles and numbers show the 20-nm wavelength and center wavelength, respectively, of the integrated six-channel multispectral near infrared spectrometer.re = red edge.

Figure 3 .
Figure 3. (a) Image of potting mix; (b) Hyperspectral reflectance (brown line) curve of potting mix obtained with a contact probe attached to a hyperspectral spectroradiometer.Gray bars and numbers on the graph represent 40-nm wavelength and the center wavelength of the integrated six-channel visible spectrometer, respectively.Red bars and numbers show the 20-nm wavelength and the center wavelengths, respectively, of the six-channel near infrared spectrometer.re = red-edge.

Table 2 .
Average digital count values of kale red Russian leaf recorded by the integrated six-channel visible and near infrared spectrometers ±2 hours of solar noon.
a Center wavelength for each sensor.

Table 3 .
Average digital count values of potting mix recorded by the integrated 6-channel visible and near infrared spectrometers ±2 hours of solar noon.

Table 4 .
Pearson correlation analyses of plant, potting mix, and greenhouse relative humidity and temperature sensors.

Table 5 .
Mean comparison of plant, potting mix, and greenhouse relative humidity and temperature sensors.
the potting mix.Perlite is an alumino-silicate ore of volcanic origin and is crushed to various particle sizes in the potting mix.Vermiculite is an expanded aluminum-iron, magnesium silicate mineral ore.Limestone is sedimentary rock consisting of calcium carbonate.The composition of the wetting agent was unknown.Comparable results were observed in the spectral response of the spectrometers and baseline spectrum response obtained with the hyper- The potting mix consisted of sphagnum peat moss, perlite, vermiculite, limestone, and wetting agent.The sphagnum peat moss would be representative of the organic