Graphical abstract
Keywords: CO2 monitoring network, General protective equipment, Contagion prevention, 3D-Printing, SARS-CoV-2, COVID-19
Abstract
In the face of a global pandemic, such as that caused by the SARS-CoV-2 virus, the prevention of new infections is essential to stop the spread and ultimately return to normality. In addition to wearing masks and maintaining safe distances, regular ventilation in enclosed spaces where several people are gathered has proven to be an effective protective measure as advised by the World Health Organization. Additionally, as has been shown in a recent study of other airborne viruses, there is a strong correlation between the CO2level and aerosol content in a confined space under the assumption humans are the only CO2source. This can be exploited by means of a low-cost infrared CO2sensor to indirectly monitor the aerosol content and to provide targeted ventilation if predefined thresholds are exceeded. The distributed CO2monitoring network presented in this paper extends that idea and provides an inexpensive, comprehensive and modular monitoring network based on readily available components and 3D printing. By using a long-range communication link (LoRa) to centrally collect the real-time CO2concentration in a multitude of rooms, this network is particularly suitable for larger building complexes such as kindergartens, schools and universities without requiring partial or even full WLAN coverage.
Specifications table:
Hardware name | Distributed LoRa based CO2monitoring network |
Subject area |
|
Hardware type |
|
Open source license | This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. |
Cost of hardware | CO2traffic light + Raspberry Pi B+: 69.00 € + 30.20 € = 99.20 € |
Source file repository | https://doi.org/10.17605/OSF.IO/SNHFD |
Hardware in context
For some time now, the monitoring of indoor air quality by means of special monitoring systems has been gaining increasing popularity in society [1], [2]. Especially during the current SARS-CoV-2 pandemic, monitoring of indoor air quality plays an important role in minimizing the risk of infection with SARS-CoV-2 [3]. Particularly in schools where 20 to 30 people stay in one room for a prolonged period of time, it is important to monitor the indoor air quality. The main transmission of the SARS-CoV-2 virus is via respiratory inhalation of virus-containing particles [4]. These particles are emitted during any form of lung-ventilation, i.e. breathing, singing, coughing, etc. Depending on the particle size, a distinction is made between larger droplets and smaller aerosols. While the larger droplets sink quickly to the ground, the smaller aerosols can also float in the air for a longer period of time and distribute themselves in enclosed spaces [5]. In one study, infectious particles could be detected for up to 3 h in a room [4]. Therefore, especially at the present time, it is important to keep the concentration of aerosol particles in the air as low as possible to minimize the potential infection risk, as described by the Wells-Riley model of aerosol infection [6]. One way of achieving this goal is by sufficient ventilation. It has been shown that exhaled air comprises aerosols which may contain the SARS-CoV-2 virus in case of an infection [7], [8]. Thus, poorly ventilated or unventilated indoor environments significantly increase the likelihood of an airborne transmission of the SARS-CoV-2 virus. In addition to aerosols, humans exhale CO2 with their respiration. The instantaneous CO2 concentration can be used as a good proxy of aerosol particle concentration since the CO2 concentration correlates with that of the aerosol particles assuming there is no other significant CO2source [9], [10], [11], [12]. It should be noted that the potential infection risk is a multi-parameter function, depending on many different aspects from which the cumulative CO2amount is only one. Yet, the cumulative CO2is still significant and directly linked to the more accessible instantaneous CO2concentration through the exposure time, i.e. a 6 h school day.
There are a variety of simplistic CO2 monitoring devices on the market measuring the indoor CO2 concentration. However, these CO2 monitoring systems are very expensive, typically around 200 € [13], [15], [14]. A less expensive but yet more limited alternative is a commercially available CO2 traffic light, which uses color coding to display the quality of the indoor air and thus, serves as an indicator for when manual ventilation needs to occur. A large number of CO2 traffic lights have also recently emerged in the field of open-source solutions [16], [17], [18], [19]. These present a cost-effective alternative to the commercially available ones. However, these solutions are usually designed for monitoring a single room and lack the ability to monitor a complete building. Occasionally, the CO2 traffic lights are networked via WLAN, which enables the monitoring of several rooms. In regard of the fact that not all schools have sufficient infrastructure, for example only 37% of all teachers in Germany are satisfied with the quality of their WLAN [20], a low-cost DIY CO2 monitoring network with IoT connection was developed by students as part of the “5th. OpenPhotonik Pro Make@thon”. Compared to the multitude of CO2 traffic lights, this distributed CO2 monitoring network offers a networking of the individual traffic lights by employing LoRa [21]. This means that schools with insufficient infrastructure can also install these traffic lights. The CO2 traffic lights send their data to a central node via LoRa. This node is connected to a WLAN access point created by a Raspberry Pi. Using MQTT (a Message Queuing Telemetry Transport protocol), the measured CO2 concentration from different rooms are graphically displayed on any WLAN-enabled terminal device. The classification of the indoor air quality is carried out according to the guidelines of the German Federal Environmental Agency [22].
Hardware description
The distributed CO2 monitoring network was designed in a way that an additional CO2 traffic light could always be added to increase the number of centrally monitored rooms. Furthermore, the individual CO2 traffic light can be easily manufactured with the help of readily available components and additive manufacturing, e.g. 3D-printing. The hardware components used are a microcontroller (ESP32), an infrared CO2 sensor, an OLED display, an RGB LED, a buzzer and a simple copper plate (as an capacitive touch switch).
The CO2 monitoring network presented here consists of individual CO2 traffic lights which are interconnected via LoRa to a central Raspberry Pi B+ that consolidates the data and provides the browser accessible user-interface for easy data retrieval. The underlying concept is to use one of these CO2 traffic lights in each room of interest in a larger building, e.g. a school, university or public institution, where the safe gathering of several people is to be supported by ventilation. Each of the CO2 traffic lights has three distinct indicators to display the CO2 level in a convenient way. The OLED display shows the current CO2 level and room temperature in real time. The RGB led acts as a traffic light and signals via three colors (green, orange and red), whether ventilation is required or not. The additional built-in buzzer provides an acoustic signal corresponding to the traffic light colors. A copper plate acts as an capacitive touch button and is used to mute the acoustic signal when desired. This state automatically resets to the un-muted state once the predefined threshold is undercut. In addition, the real-time data as well as the temporal trend can be tracked through a browser by means of any WLAN capable device, e.g. a tablet, laptop or smartphone, via the access point of the Raspberry Pi. The great advantage is that the ventilation of an entire building can additionally be monitored centrally and, if necessary, logged. A connection station identical in construction to the CO2 traffic lights but with a different software setup enables the real-time data to be transmitted via LoRa and forwarded directly to the Raspberry Pi via MQTT. This Pi potentially provides real-time data to the entire home network or can be set up to provide its own access point in case of unavailable WLAN. It can be considered as an important feature that no existing WLAN is necessary. If the Raspberry Pi is used as an access point, it provides the WLAN for the connection station and any central monitoring device (computer, laptop, tablet, etc.). A schematic of the above described interconnections is shown in Fig. 1.
The housing provided was kept simple and is equipped with corresponding mounting holes in the back for a wall-mounted installation. The housing is provided with ventilation cutouts at the position of the CO2 sensor module (MH-Z19B) to ensure optimal functionality. The micro-USB port of the ESP32 (DevKit C V4) is easily accessible from the outside. In this way future firmware updates can be easily deployed without the need to take the whole traffic light apart. Over-the-air-updates are a possibility for future improvements. There are basically two options for the power supply. The direct use of a USB power supply or the external use of any kind of power bank.
The clear innovation of this CO2 monitoring network compared to simple, independent CO2 traffic lights is the use of LoRa for regular transmission of the measured values to a centrally monitored location. While simple CO2 traffic lights only display the CO2 concentration in real time and thus warn the user of rising CO2 concentrations, there is no direct control according to the four-eyes principle. Although some models use MQTT via an existing WLAN, the latter is not met in many places. This applies not only to German schools but also to countries with a less developed infrastructure. Since the amount of data to be transmitted is small and the distances, for example in schools, can quickly become relatively large. The use of LoRa is an excellent solution at this point. With a range of several hundred meters, the CO2 concentrations are transmitted at random intervals (approx. every 2.5 minutes with a random jitter of 60 seconds), as is usual with LoRa collision avoidance, which is perfectly sufficient to map the CO2 concentration of a classroom over the course of a day.
-
•
The presented network centrally monitors the instantaneous CO2 concentrations of a whole building and thus, allows to indirectly infer the aerosol load and hence the viral load in the assumed presence of an infected person.
-
•
The presented network can easily be expanded in a modular fashion across a multitude rooms.
-
•
The distributed devices directly provide optical and visual clues to ventilate when reaching predefined thresholds.
-
•
The presented network does not rely on an existing wireless local area network (WLAN) by using a long range communication link (LoRa).
-
•
The distributed devices are cheap to build, easy to install and configure.
Design files
Design filename | File type | Open source license | Location of the file |
‘casing (front)’ | .stl | Creative Commons Attribution-ShareAlike 4.0 Int. License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘casing (back)’ | .stl | Creative Commons Attribution-ShareAlike 4.0 Int. License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘CO2-Monitor-Station’ | .JSON | Creative Commons Attribution-ShareAlike 4.0 Int. License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘CO2-Monitor_v7f’ | .ino | Creative Commons Attribution-ShareAlike 4.0 Int. License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘requirements’ | .txt | Creative Commons Attribution-ShareAlike 4.0 Int. License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘Adafruit_GFX_Library.zip’ | OLED graphics library | BSD License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘Adafruit_SSD1306.zip’ | OLED library | BSD License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘Heltec_ESP32_Dev-Boards.zip’ | Heltec ESP32 library | MIT License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘LoRa.zip’ | LoRa library | MIT License | https://doi.org/10.17605/OSF.IO/SNHFD |
‘MH-Z19.zip’ | CO2 sensor library | GNU GPL v3 | https://doi.org/10.17605/OSF.IO/SNHFD |
‘PubSubClient.zip’ | MQTT client | MIT License | https://doi.org/10.17605/OSF.IO/SNHFD |
Bill of materials
Designator | Component | Number | Cost per unit - EUR | Total cost - EUR | Source of materials |
casing (front) | casing front panel | 1 | 0.68 € | 0.68 € | Prusa Polymers a.s. |
casing (back) | casing back panel | 1 | 0.78 € | 0.78 € | Prusa Polymers a.s. |
CO2 sensor | MH-Z19B infrared-CO2-sensor | 1 | 18.09 € | 18.09 € | Alibaba Group Holding Ltd |
ESP32 | ESP32 NodeMCU DevKit C V4 | 1 | 9.49 € | 9.49 € | AZ-Delivery Vertriebs GmbH |
OLED display | SSD1306 0,96 Zoll OLED Display | 1 | 6.99 € | 6.99 € | AZ-Delivery Vertriebs GmbH |
LoRa module | RFM9X LoRa Packet Radio | 1 | 19.59 € | 19.59 € | Adafruit Industries |
PI B+ | Raspberry PI B+ | 1 | 30.20 € | 30.20 € | reichelt elektronik GmbH & Co. KG |
RGB led | KY-016 LED RGB Modul | 1 | 4.29 € | 4.29 € | AZ-Delivery Vertriebs GmbH |
Buzzer | TMB12A05 Buzzer | 1 | 0.64 € | 0.64 € | Conrad Electronic SE |
Jumper Wire | Jumper Wire Set | 1 | 5.99 € | 5.99 € | reichelt elektronik GmbH & Co. KG |
R1 820 | Resistor 820 | 1 | 0.06 € | 0.06 € | Conrad Electronic SE |
R2 1 k | Resistor 1 k | 1 | 0.12 € | 0.12 € | Conrad Electronic SE |
Transistor | PNP Transistor BC557C | 1 | 0.19 € | 0.19 € | Conrad Electronic SE |
DOT PCB | DOT PCB 100 mm x 65 mm | 1 | 2.00 € | 2.00 € | Conrad Electronic SE |
Touch plate | Copper plate 15 mm x 20 mm | 1 | 0.09 € | 0.092 + 0,09 € | Conrad Electronic SE |
Build instructions
This chapter is subdivided into three sections, each providing information and focusing on a different aspect of the CO2 monitoring network. First, a brief setup of the Raspberry Pi, second assembling a single CO2 traffic light by means of its electrical wiring and third uploading and configuring necessary firmware to said traffic light.
A rudimentary understanding of working with the ESP32, Raspberry Pi and Node-RED is presumed in the following. Extensive tutorials and instructions on the corresponding topics are available online within the DIY and Maker community [23], [24], [25] (see Fig. 2).
Setting up the Raspberry Pi
This section briefly covers the requirements when setting up the Raspberry Pi with Mosquitto broker and Node-RED. The emphasis is on the final Node-RED ‘flow’ for monitoring the individual rooms.
-
(a)
Set up the Raspberry Pi with an operating system of your choice. The Raspberry Pi OS (Raspbian) is perfectly adequate. For this purpose, balenaEtcher or the Win32 Disk Imager can be used to flash the corresponding image onto an SD card. Recommendations regarding brand, capacity, and speed can be found on the Raspberry Pi foundations homepage (raspberrypi.org) [23].
-
(b)
If no monitor or keyboard is available Secure Shell (SSH) can be used for the setup. Make sure to create an empty file within the boot section of your SD card and name it ‘SSH’ with no extension.
-
(c)
Connect your Raspberry Pi via Ethernet to your computer or laptop. To establish a connection PuTTY (Windows) or the build-in Terminal application (Mac OS) can be used.
-
(d)
Install the Eclipse Mosquitto Broker (randomnerdtutorials.com) and Node-RED (nodered.org) on the Raspberry Pi. Make sure to enable the Node-RED service and configure autostart on boot. The default port is 1880 [24], [25].
-
(e)
When configuring the Raspberry Pi as a WLAN access point make sure to write down the ssid and password along with the IP-address for the following setup of the individual CO2 traffic lights.
-
(f)
To load and edit the provided Node-RED flow use any browser from your computer or laptop. The editor is available from ‘http://IP-address:1880’.
-
(g)
The provided Node-RED flow CO2-Monitor-Station.json is designed to be loaded into the editor once for each CO2 traffic light used. Afterwards the unique hexadecimal identifier needs to be configured accordingly to the ones used with each CO2 traffic light.
-
(h)
Tip: The unique number used to identify each CO2 traffic light is displayed as a decimal number each time you start or touch the copper, touch-sensitive switch. Ascending numbering is recommended, the use of unique numbers is mandatory.
-
(i)
After configuring the identifiers, the corresponding sources must be assigned to the display elements in the UI menu. After this minimal setup, the CO2 concentrations of different rooms can be monitored through any device with a browser which is connected to the access point.
Assembling the CO2 Monitor
In this section we focus on wiring and assembly of the CO2 traffic light. We provide some additional tips on the recommended 3D-printing and address aspects of planning.
-
(a)
Print the.stl files ‘casing (front)’ and ‘casing (back)’ using a FDM 3D-printer of your choice with 20% infill and 0.2 mm layer resolution. We recommend the use of PLA filament for ease of printing and good mechanical stability. Whilst printing the wiring can already be carried out.
-
(b)
The complete wiring diagram used is shown in Fig. 3 and will be broken down in separate steps below. The necessary layout for the components on the DOT PCB is shown in Fig. 4. If no dimension is provided the exact position does not have to be followed.
-
(c)
It is recommended to follow the layout to ensure that all cutouts of the housing are in the correct position. This ensures optimal visibility of the display and undisturbed ventilation of the CO2 sensor.
-
(d)
Crucial components for the casing to fit are the ‘CO2 Sensor’ (MH-Z19B),‘RGB led’ (KY-016), the ‘OLED display’ (SSD1306) and the ‘Buzzer’ (TMB12A05). Once the DOT PCB is completely wired it is intended to be press-fitted into the casing.
-
(e)
To connect the ‘CO2 Sensor’ (MH-Z19B) wire GPIO32 with RX and GPIO33 with TX as shown in Fig. 5. For the power supply, wire the 5 V to VIN and GND to GND or a common ground.
-
(f)
To connect the ‘OLED display’ (SSD1306) wire GPIO21 with SDA and GPIO22 with SCL as shown in Fig. 6. For the power supply, wire the 3V3 to VCC and GND to GND or a common ground.
-
(g)
To connect the ‘LoRa module’ (RFM9X) wire GPIO2 with DIO0, GPIO5 with CS, GPIO14 with RST, GPIO18 with SCK, GPIO19 with MISO and GPIO23 with MOSI as shown in Fig. 7. For the power supply, wire the 3V3 to VIN and GND to GND or a common ground.
-
(h)
To connect the ‘RGB led’ (KY-016) wire GPIO4 with G, GPIO15 with B, GPIO15 with R and GND to GND or a common ground as shown in Fig. 8.
-
(i)
To connect the ‘Buzzer’ (TMB12A05) wire GPIO27 with R1. Connect R1 directly to R2 and the base of the transistor. Wire the other end of R2 and the emitter to 3V3. Finally connect the collector with the ‘Buzzer’ and itself to GND.
-
(j)
To connect the ‘Touch plate’ wire GPIO13 directly to the copper plate after the cable has passed through the ‘casing (front)’. To join the housing together afterwards, a cable length of 10 cm is recommended.
-
(k)
The copperplate which functions as a capacitive touch switch is intended to be glued down by some adhesive into the according slot of the ‘casing (front)’.
-
(l)
Once every component is correctly wired press the assembled DOT PCB (Fig. 9a)) with a small amount of force into the ‘casing (back)’ (Fig. 9b)). The dimensions are designed to be press-fitted. In the case of too wide tolerances, i.e. the DOT PCB has slack inside the housing, apply some hot-glue to keep the DOT PCB in place within ‘casing (back)’.
-
(m)
To assemble the whole CO2 traffic light, press the ‘casing (front)’ (Fig. 9c)) directly onto the prior assembled ‘casing (back)’. The dimensions of both parts are designed to be press-fitted. Should the two casing parts exhibit too wide tolerances, one can easily apply some electricians tape to fill the gap and thus insure a removable press-fit. The utilization of super-glue is fine (avoid contaminating display or sensor), however, disassembly of a glued casing is most likely destructive and will require printing a new casing. The final assembly is shown in Fig. 9d).
Uploading the firmware to the ESP32
This section covers the upload of the firmware to the ESP32 and the required settings in the software file CO2-Monitor_v7f.ino. A basic distinction is made between the regular CO2 traffic light and the connection station, a software modification of the CO2 traffic light, which additionally transmits the data collected from every other traffic light via LoRa to the Raspberry Pi via MQTT.
-
(a)
The software designated for the ESP32 is the CO2-Monitor_v7f.ino. To upload this software the integrated development environment of Arduino is used (Arduino IDE).
-
(b)
The first step is to add the ESP32 as a board. In your Arduino IDE, navigate to File Preferences and add https://dl.espressif.com/dl/package_esp32_index.json into the ‘Additional Board Manager URLs’ field.
-
(c)
The requirements.txt file contains an overview of the required libraries, which can be downloaded either directly from the repository or from the Arduino IDE package manager.
-
(d)
Immediately before uploading the software to the ESP32, the correct board (ESP32 Dev Module) must be selected under Tools and configured if necessary.
-
(e)The following constants and variables must be set before the upload according to the desired configuration.
-
•NUM is a unique hexadecimal number between 0 and 255 (0x00 to 0xFF) which must be different for each CO2 traffic light.
-
•SETUP_STARTUP_TIME is 3 min if a CO2 sensor is installed.
-
•SENSOR_MODULE is true (CO2 traffic light) or false (only connection station without CO2 sensor)
-
•MQTT_MODULE is false (CO2 traffic light) or true (connection station)
-
•PERIPHERY_MODULE is true (CO2 traffic light) or false (without the OLED display etc.)
-
•int stage1 = 800; lower CO2 threshold in ppmint stage2 = 1000; upper CO2 threshold in ppm
-
•const char* ssid = “RaspiAP”; your ssid of the Raspberry Pi AP
-
•const char* password = “12345678”; your password of the Raspberry Pi AP, change at your earliest convenience, but do note it somewhere
-
•const char* mqtt_server = “192.168.178.11”; your IP of the Node-RED server change to your liking
-
•
-
(f)
After all constants and variables have been set to the desired value, the CO2-Monitor_v7f.ino file can be uploaded to the ESP32.
Design decisions and possible alternatives
The choice of the MH-Z19B CO2 sensor is due to its good availability at the time of writing. In addition to a sufficient measuring range from 0 ppm to 5000 ppm, this particular sensor has a self-calibration function. It should be noted that there are also cheaper air quality sensors, but these are usually not CO2 specific, resulting in potentially faulty readings due to cross-sensitivity to other gases. Another positive point is the easy integration with the Arduino. Possible alternatives are the somewhat more expensive SCD30 CO2 sensor from Sensirion or the direct successor model, the MH-Z19C.
The used ESP32 NodeMCU DevKit C V4 was chosen especially because of its programmability in Arduino and its integrated WLAN and Bluetooth functions. Compared to its direct predecessor, the ESP8266, the ESP32 has a 240 MHz dual core processor and a 4 Mbyte flash memory, making it the modern and more powerful choice. This together results in a large and helpful online community, making development very beginner-friendly. Again, it should be noted that the specific choice of this ESP32 module is related to availability at the time of writing. Alternatively, any other available ESP32 module can be used. Only the software has to be adapted accordingly and sometimes not even that, if a pin-compatible replacement has been chosen.
The RFM9X LoRa Packet Radio, along with the CO2 sensor used, is at the heart of the hardware presented here. By additionally using a Raspberry PI as WLAN access point and MQTT broker, the RFM9X module allows to monitor entire building complexes and facilities centrally via LoRa at 868 MHz. The obvious advantage is the low cost (approx. 90 €) of the individual CO2 traffic lights without requiring an already existing or area-wide WLAN. In order to remain compliant with the legal framework regarding the bandwidth used and to avoid possible transmission collisions, the measured values are transmitted approx. every 2.5 minutes with a random jitter of 60 seconds.
Operation instructions
The following instructions deal with the operation of the distributed CO2 monitoring network. They cover the operation of the individual CO2 traffic lights as well as the entire network. The installation as described in chapter 5 is mandatory and presumed.
CO2 traffic light operation instructions
.
-
•
Place or mount the CO2 traffic light in a location of your choice using the integrated keyhole mounting. Keep in mind that the positioning has an influence on the measured CO2 concentration and it is therefore recommended to mount the CO2 traffic light at chest/head height.
-
•
Connect the CO2 traffic light using a micro USB cable and an appropriate USB power adapter (5 V, 1 A) with the power outlet. Alternatively, a power bank can be employed for mobile use. The consumption of the CO2 traffic light is about 550 mW.
-
•
Immediately after start-up, the CO2 traffic light displays its previously set unique number NUM as ‘Sense NUM’ followed by the message ‘Sensor Warm-Up’.
-
•
The warm-up time of the sensor is 3 min according to the manufacturer’s specifications and can be edited in the code. After this time, the CO2 traffic light is ready for use and displays the CO2 content in ppm and the room temperature in °C.
-
•
The RGB LED indicates an exceeding of the previously set thresholds by a change in color from green (everything is alright) to orange (it should be ventilated soon) and finally to red (ventilation is now required). At the same time the respective thresholds are linked to an acoustic warning signal.
-
•
To mute the acoustic warning signal of the CO2 traffic light, touch the copper, touch-sensitive switch. The muting of acoustic warning signals is toggled back to active by the CO2 reading falling below the predetermined threshold.
-
•
Transmission of the current CO2 concentration via LoRa to the connection station is done automatically and does not require any further steps besides the correct configuration of the CO2 traffic light.
Centralized monitoring network operation instructions
-
•
In order to use the LoRa based CO2 monitoring system, one of the CO2 traffic lights must be set up as a connection station as described in chapter 5. The basic concept is to use exactly one connection station in combination with a Raspberry Pi based access point and any number of additional ordinary CO2 traffic lights.
-
•
The connection station must first be installed in the WLAN range of the Raspberry Pi access point used. The CO2 traffic lights connected via LoRa have a range of several hundred meters due to the use of typical radio frequencies. The absolute range depends primarily on the combination of distance and obstacles (walls/buildings) and cannot be generalized.
-
•
To use the monitoring capabilities an additional device like a tablet or laptop is advised. With said device connect via WLAN to the access point of the Raspberry Pi and navigate to the browser-based Node-RED UI (‘http://IP-address:1880/ui’).
-
•
A brief explanation on the setup is provided within Section 5.1. The above used IP-address is the one of the Raspberry Pi running the Node-RED service.
-
•
From the browser-based Node-RED UI the real-time CO2 concentration, room temperature and received signal strength indicator (RSSI) can be monitored as shown in Fig. 10. The data gets updated approximately every 2.5 min.
Validation and characterization
In this chapter, two types of measurements are presented to validate the individual CO2 traffic light and the entire monitoring network from a practical point of view. In order to reliably comply with the set concentration thresholds, one traffic light was examined with regard to its CO2 concentration measurement capability. Furthermore, the validation of the hardware regarding its everyday use takes place in a volunteering school.
CO2 concentration measurement validation
For validation of the CO2 concentration measurements, four predefined gas mixtures (1000 ppm, 2000 ppm, 3000 ppm and 4000 ppm) were prepared and used to measure different concentration levels by means of an exemplary CO2 traffic light. The measurements were carried out with the kind support of ‘ecom GmbH’.
The process of producing the gas mixtures is described in the following paragraph. For mixing, a bottle of 20 % CO2 (‘Westfalen AG’, type: carbon dioxide 3.0) and a bottle of pure N2 (‘Westfalen AG’, type: nitrogen 5.0) are used. Each one of the bottles is connected to a separate gas flow controller (CO2, ‘Vögtlin Instruments GmbH’, type: GSC-B9TS-DD23 calibrated to 2 bar; N2, ‘Vögtlin Instruments GmbH’, type: GSC-B4TS-DD23 calibrated to 3 bar) and the corresponding normal flow rates (CO2, 2.0 l/min; N2, 0.4 l/min) are set. A commercial gas bag (‘Westfalen AG’, type: Alumini 1 (15 l)) is used as a vessel for mixing, which is completely evacuated before the mixing process. Then, using a stopwatch and the gas meter, the two gases are filled one after the other into the gas sack by means of a hose with a quick-release coupling (PFA 4 × 6 mm, various Rectus products with material 1.4305). When the previously calculated duration is reached and the gas meter indicates the required amount, the quick-release coupling is disconnected. The gas volumes used are shown in Table 1. The calculated concentration is shown in the column ‘reference CO2 conc. (ppm)’.
Table 1.
Gas products | volume (l) | reference CO2 conc. (ppm) | measured CO2 conc. (ppm) |
---|---|---|---|
CO2 20.1% N2 99.999 % |
0.05 9.95 |
||
CO2 20.1% N2 99.999 % |
0.10 9.90 |
||
CO2 20.1% N2 99.999 % |
0.15 9.85 |
||
CO2 20.1% N2 99.999 % |
0.20 9.80 |
For the validation process, the warm-up phase of the CO2 traffic light takes place directly at the open window. Afterwards, the CO2 traffic light is placed in an airtight lockable box (approx. volume: 2 l) with a fixed inlet and outlet (6 mm holes). To power the hardware a power bank is used. The previously filled gas bag is weighted with a simple 1 kg weight to create a constant pressure. The gas bag is then connected to the box with the CO2 traffic light by means of a hose with a quick-release coupling. To maintain a constant gas flow, the weight must be repositioned approximately every 5 min. This ensures that the box is continuously purged with the previously prepared gas mixture. After approximately 25 min, the final static value is read from the CO2 traffic light. The results of the validation measurement are shown in Fig. 11.
Within the limits of their errors, the measurements show an excellent agreement between the CO2 concentration measured by the CO2 traffic light (MH-Z19B) and the beforehand prepared CO2 concentration of the gas mixture. We conclude that the CO2 traffic light is suitable to provide accurate CO2-measurements and thus valuable information of the viral load within its error margin. In addition, the predefined threshold of 800 ppm is a useful first indicator of when ventilation is recommended. According to the manufacturer’s data sheet, the measurement error at a read concentration of 1000 ppm is ppm. Accordingly, the upper threshold of 1000 ppm is undercut with a high probability assuring maximal safety.
School measurement validation
For the validation of the CO2 monitoring network from a practical point of view (central monitoring, LoRa functionality and deployment under real conditions), the system presented in this paper was deployed in the ‘Evangelisches Gymnasium Nordhorn’ and subjected to a field test. For this purpose, the system was used in a total of two classrooms as shown in Fig. 12 in addition to the locally applicable regulations for ventilation. The classrooms were ventilated approximately every 20 min for a period of 5 min (according to the specifications of the head of school), irrespective of the actual CO2 concentration. If the previously set threshold of 800 ppm is exceeded, additional ventilation takes place. Fig. 13 shows the measured course of CO2 concentration over a total of six school hours from 07:45 a.m. till 12:15 a.m. with two 20 min breaks.
The gathered data was sent via LoRa from the classroom to the connection station approximately every 2.5 minutes (including a random delay for collision avoidance) and stored via Node-RED. The course of the data suggests that the selected sampling rate is sufficient to represent the rather slow variation in CO2 concentration with sufficient detail.
It can be clearly seen that after a short time delay after opening the windows for ventilation, the CO2 concentration decreases. This delay is most likely due to the initial mixing of the stale and fresh air, so that the CO2 concentration does not drop instantaneously when opening the windows. Besides prolonged ventilation periods like from 11:15 a.m. till 12:00 a.m. due to high temperatures above 31.0 °C a direct decrease in concentration is achievable when necessary. It should be emphasized at this point that at two points in time, despite the ventilation regulations already in place, the threshold of 1000 ppm was exceeded, which underlines the usefulness of the presented CO2 monitoring network.
LoRa range validation
To validate the CO2 monitoring network’s LoRa range, the system presented in this paper was tested thoroughly at the ‘Evangelisches Gymnasium Nordhorn’. In particular, the potential range of this system was analyzed in two scenarios, one indoors and one outdoors. It is important to emphasize that accurate validation of LoRa range depends on a variety of different parameters, such as distance, shielding by walls and ceilings or background noise. Since these parameters can only be controlled to a limited extent, the validation performed serves more as a proof of concept instead of an exact measurement of the achievable range.
For the indoor validation the CO2 traffic light used as receiver (connection station) was placed at a fixed position inside the school’s building while the transmitting CO2 traffic light was moved to ten different rooms and locations for validation of the received signal strength indicator (RSSI). Fig. 14 shows a sketched layout of the school building. The red dot represents the position of the fixed receiver (connection station). The blue dots numbered from 0 to 9 show the relative positions of the transmitter. Differences in height are omitted for sake of simplicity. The measured RSSI, including a short description of involved obstructions and an estimate of the distance are shown in Table 2. The data obtained clearly indicates a sufficient signal strength for an obstruction of up to five walls (#5) at a distance of approx. 43 m. Only through eight walls (#6) at a distance of approx. 57 m no signal was received, which does not represent the most realistic use case since the CO2 traffic light used as receiver would be planted in a more central position.
Table 2.
Number | Obstruction | Distance (m) | RSSI (dB) |
---|---|---|---|
0 | no wall | 0.2 | −16 |
1 | one wall | 3 | −68 |
2 | one ceiling | 3 | −68 |
3 | three walls | 21 | −75 |
4 | four walls | 32 | −106 |
5 | five walls | 43 | −107 |
6 | eight walls | 57 | no signal |
7 | one ceiling + two walls | 33 | −108 |
8 | one wall | 54 | −104 |
9 | one wall + glass pane | 54 | −105 |
Furthermore, Table 3 shows the measured RSSI in an outdoor scenario from 100 m to 1000 m with an unobstructed view realized on a field trail. This data also indicates a sufficient signal strength even at the maximal distance of 1000 m. Any further distances were neglected due to the unrealistic use case. Both measurements combined conclude, that the number of obstructions play by far a more crucial role as the absolute distance and the use of one CO2 traffic light configured as connection station is sufficient in most cases.
Table 3.
Distance (m) | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 |
---|---|---|---|---|---|---|---|---|---|---|
RSSI (dB) | −88 | −90 | −97 | −102 | −104 | −107 | −108 | −108 | −108 | −109 |
Funding and Acknowledgements
This research is part of the project Optocubes1 and was funded by the German Federal Ministry of Education and Research (BMBF) within the funding program “Photonics Research Germany” with contract number 13N15229 and 13N15230. The authors are responsible for the contents of this publication.
The authors would like to thank ecom GmbH and Tom Maschin for the support in the chapter ‘validation and characterization’ and for providing the measuring equipment.
Declaration of Competing Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Footnotes
References
- 1.Marques G., Ferreira C.R., Pitarma R. Indoor Air Quality Assessment Using a CO2 Monitoring System Based on Internet of Things. Journal of Medical Systems. 2019;43(3):67. doi: 10.1007/s10916-019-1184-x. [DOI] [PubMed] [Google Scholar]
- 2.Curtius J., Granzin M., Schrod J. Testing mobile air purifiers in a school classroom: Reducing the airborne transmission risk for SARS-CoV-2. Aerosol Science and Technology. 2021;55(5):586–599. doi: 10.1080/02786826.2021.1877257. URL: https://doi.org/10.1080/02786826.2021.1877257. [DOI] [Google Scholar]
- 3.World Health Organization, Roadmap to improve and ensure good indoor ventilation in the context of COVID-19, World Health Organization, 2021, ISBN 978-92-4-002128-0, URL: https://www.who.int/publications/i/item/9789240021280.
- 4.RKI – Coronavirus SARS-CoV-2 - Epidemiologischer Steckbrief zu SARS-CoV-2 und COVID-19, 12.04.2021, URL: https://www.rki.de/DE/Content/InfAZ/N/Neuartiges_Coronavirus/Steckbrief.html;jsessionid=F625BE6D7D1CADBED2D39468180EF968.internet102?nn=13490888#doc13776792bodyText1.
- 5.Morawska L., Milton D.K. It Is Time to Address Airborne Transmission of Coronavirus Disease 2019 (COVID-19) Clinical infectious diseases: an official publication of the Infectious Diseases Society of America. 2020;71(9):2311–2313. doi: 10.1093/cid/ciaa939. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Riley E.C., Murphy G., Riley R.L. Airborne Spread of Measles in a Suburban Elementary School. Am. J. Epidemiol. 1978;107(5):421–432. doi: 10.1093/oxfordjournals.aje.a112560. [DOI] [PubMed] [Google Scholar]
- 7.S. Tang, Y. Mao, R.M. Jones, Q. Tan, J.S. Ji, N. Li, J. Shen, Y. Lv, L. Pan, P. Ding, X. Wang, Y. Wang, C.R. MacIntyre, X. Shi, Aerosol transmission of SARS-CoV-2? Evidence, prevention and control, Environment International 144 (2020), 106.039, doi:10.1016/j.envint.2020.106039. [DOI] [PMC free article] [PubMed]
- 8.N. van Doremalen, T. Bushmaker, D.H. Morris, M.G. Holbrook, A. Gamble, B.N. Williamson, A. Tamin, J.L. Harcourt, N.J. Thornburg, S.I. Gerber, J.O. Lloyd-Smith, E. de Wit, V.J. Munster, Aerosol and surface stability of HCoV-19 (SARS-CoV-2) compared to SARS-CoV-1, medRxiv, URL: https://www.medrxiv.org/content/early/2020/03/13/2020.03.09.20033217.full.pdf, doi:10.1101/2020.03.09.20033217. [DOI] [PMC free article] [PubMed]
- 9.A. Hartmann, M. Kriegel, Risk assessment of aerosols loaded with virus based on CO2-concentration, Preprint, doi:10.14279/depositonce-10361.
- 10.R.K. Bhagat, M.S. Davies Wykes, S.B. Dalziel, P.F. Linden, Effects of ventilation on the indoor spread of COVID-19, Journal of Fluid Mechanics 903 (2020) F1, doi:10.1017/jfm.2020.720. [DOI] [PMC free article] [PubMed]
- 11.Peng Z., Jimenez J.L. Exhaled CO2 as a COVID-19 Infection Risk Proxy for Different Indoor Environments and Activities. Environmental Science & Technology Letters. 2021;8(5):392–397. doi: 10.1021/acs.estlett.1c00183. [DOI] [PubMed] [Google Scholar]
- 12.A. Zivelonghi, M. Lai, Mitigating aerosol infection risk in school buildings: the role of natural ventilation, volume, occupancy and CO2 monitoring, Building and Environment 204 (2021) ISSN 0360-1323, doi:10.1016/j.buildenv.2021.108139.
- 13.UnravelTEC OG, RCO2-A NT - Mobile CO2-Ampel zur flexiblen direkten Wandmontage (last access Mai 2021), URL: https://www.co2-logger.com/product/co2-ampel//.
- 14.ISIS IC GmbH, CO2-Ampel (last access Mai 2021), URL: https://co2ampel.online/co2-ampel-bestellen/.
- 15.S + S Regeltechnik GmbH, Conny - CO2 Ampel (last access Mai 2021), URL: https://spluss.de/de/landingpages/co2-ampel/.
- 16.T.A., S. Esfahani, J. Covington, Design and Development of a Low-Cost, Portable Monitoring Device for Indoor Environment Quality, Journal of Sensors, doi:10.1155/2018/5353816.
- 17.M. Taştan, H. Gökozan, Real-Time Monitoring of Indoor Air Quality with Internet of Things-Based E-Nose, Applied Sciences 9 (16), ISSN 2076-3417, doi:10.3390/app9163435.
- 18.Lapshina P.D., Kurilova S.P., Belitsky A.A. 2019 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EIConRus) 2019. Development of an Arduino-based CO2 Monitoring Device; pp. 595–597. [DOI] [Google Scholar]
- 19.M. Sachit, L. Cyuan-Heng, W. Dong-Yi, C. Ling-Jyh, From Do-It-Yourself (DIY) to Do-It-Together (DIT): Reflections on designing a citizen-driven air quality monitoring framework in Taiwan, Sustainable Cities and Society 66 (2021) 102.628, ISSN 2210-6707, doi:10.1016/j.scs.2020.102628.
- 20.U. Schmid, L. Goertz, J. Behrens, Monitor Digitale Bildung - Die Hochschulen im digitalen Zeitalter, Technical report, Bertelsmann Stiftung, 2017, doi:10.11586/2017014.
- 21.Semtech Corporation, AN1200.13 - SX1272/3/6/7/8 LoRa Modem Design Guide (last access November 2021), Revision 1 (2013), URL: https://semtech.my.salesforce.com/sfc/p/#E0000000JelG/a/2R0000001OK4/K1xBJSCPflEbqU03CfABAjL29tRKA9KsdAdTIsWBA8s.
- 22.Ad-hoc-AG IRK/AOLG, Gesundheitliche Bewertung von Kohlendioxid in der Innenraumluft. Mitteilungen der Ad-hoc-Arbeitsgruppe Innenraumrichtwerte der Innenraumlufthygiene-Kommission des Umweltbundesamtes und der Obersten Landesgesundheitsbehoerden, Bundesgesundheitsblatt, Gesundheitsforschung, Gesundheitsschutz 51 (11) (2008) 1358–1369, doi:10.1007/s00103-008-0707-2. [DOI] [PubMed]
- 23.raspberrypi.org, The Raspberry Pi Foundation (last access June 2021), URL: https://www.raspberrypi.org/.
- 24.randomnerdtutorials.com, Random Nerd Tutorials helps makers, hobbyists, and engineers build electronics projects (last access June 2021), URL: https://randomnerdtutorials.com/.
- 25.nodered.org, Node-RED is an open source flow-based programming tool (last access June 2021), URL: https://nodered.org/.