How good are indoor CO2 sensors?

By Cameron | November 5, 2018

Passive Houses need to be highly insulated. They then need to be airtight, partly to ensure there is no risk of condensation in the insulated building fabric. And then they need mechanical ventilation to ensure there is sufficient fresh indoor air for comfort and occupant health. There are several criteria within the Passive House Planning Package that stipulate the volume of fresh air the ventilation system needs to provide. But there is some evidence to suggest occupants aren’t always operating the ventilation system as designed (McGill, Qin, and Oyedele (2014)). And the homeowner often has limited evidence that the ventilation system has been setup correctly.1 So it seems reasonable to want to measure indoor air quality as an additional reassurance.

Measuring or marketing?

There has been rapid development in atmospheric sensing technology over the past ten years, with a large number of sensors entering the market at very low cost. These sensors have, in turn, been incorporated into any number of consumer-level products such as2:

But what evidence is there to suggest these devices actually measure what they purport to measure? There’s lots of marketing spiel3 on these websites, but a paucity of information on device accuracy. The primary purpose of buying something that measures indoor air quality should be that it does just that. That doesn’t mean something laboratory grade, but it does mean something that is sufficient to give some assurance that it’ll be fit for purpose. Marketing platitudes aren’t sufficient evidence.

It’s important to understand these consumer-level devices are basically integrations of sensors developed by others. There is very little the device developer can do to influence the accuracy of these underlying sensors, particularly as they can’t perform a site-specific calibration for every unit sold. These sensors are not made by Footbot, uHoo et al but rather are acquired from specialist sensor manufacturers.4 The packaging, web interface and smartphone integration can be very fancy - but these have nothing whatsoever to do with how well the device measures air quality.

Many of these devices claim to be able to measure carbon dioxide (CO2), total volatile organic compounds (TVOCs) and particulate matter (PM). This post is concerned only with CO2. While all three are difficult to measure, CO2 is probably the “easiest”.

How can we test these gadgets?

This is challenging, and may be part of the reason why the suppliers seem so reticient to provide data on their system accuracy. The difficulty arises in not having access to laboratory-grade measurement equipment, or samples with known gas concentrations, to compare against. The only known CO2 concentration to which we have ready access is the atmosphere, at a little more than 400 ppm. This is fine for a baseline calibration, but doesn’t really tell us much about the sensor sensitivity. So in the absence of this we’re limited to comparing devices against one another, never being quite sure which (if any) is correct. While this is far from perfect, it’s probably adequate for the purpose of indoor air quality monitoring anyway - what we want to know is about the general quantum, and how this changes over time.

Methodology

We’ve acquired a number of sensors (usually installed on breakout boards) that are commonly used in consumer-level air quality monitors to measure CO2, VOC and PM. All the sensors are low cost (usually less than $100 in small volume, and in many cases less than $20). The sensors are all connected to a Particle Photon microcontroller. They were programmed and burnt-in in accordance with the manufacturers’ technical documentation (including, in many cases, being exposed to outdoor air), but not calibrated. The devices were then left to run for several days indoors in a home office with mechanical ventilation operating but windows closed. The sensors were left powered on and sampled for a single reading once a minute.

Sensors

There are two distinct detection principles used by CO2 sensors: non-dispersive infrared (NDIR) and metal oxide semiconductor (MOS). The operating principle can be found online. What is relevant here is that NDIR sensors attempt to directly measure CO2 concentration whereas MOS sensors instead detect other gases (usually VOCs, but also hydrogen and sometimes other gases), and then use these as a proxy for CO2 concentrations. The relevance of this distinction will become important shortly. Further, the NDIR devices differ insofar as one (the Sensiron SCD30) has a dual wavelength sensor whereas the Senseair K30 has only a single wavelength sensor. This isn’t relevant for the present results, but the dual wavelength design reduces drift on the sensor over time. By comparison, single wavelength sensors need to be exposed to a known baseline CO2 concentration (usually atmospheric concentrations) occasionally so they can recalibrate themselves. This may or may not be possible in an indoor environment.

Manufacturer

Device

Sensor type

Range (ppm)

Comment

Senseair

K30

NDIR*

0-5,000

Single wavelength with ABC#

Sensiron

SCD30

NDIR*

400-10,000

Dual wavelength

AMS

iAQ-Core C

MOS^

450-2,000

Sensiron

SGP30

MOS^

0-60,000

H2 for equiv-CO2, with humidity compensation

* Single wavelength non-dispersive infrared
^ Metal oxide semiconductor
# Automatic baseline correction

Results

Two days worth of results are shown in Fig. 1. There are two distinct groups:

  • the two NDIR devices (Senseair K30 and Sensiron SCD30) have fairly similar (and plausible) readings, and
  • the two MOS devices measure much, much higher values and the trends seem far less plausible.

The NDIR sensors seem to respond similarly, which is encouraging. Furthermore, the differences between their readings is not huge (around 60 - 70 ppm) and remains fairly consistent. This variation is likely to be no practical significance for indoor air quality monitoring, and in any case can be readily calibrated out should the sensors be exposed to a known CO2 concentration. It’s the MOS sensors which are a real worry - if we were to take these sensor values at face value we’d likely conclude we have poor air quality.5 But the NDIR sensors are suggesting much lower values, never above 930 ppm and averaging below 700 ppm. Given the number of building occupants and presence of mechanical ventilation the latter results is the much more credible result.

It is reiterated at this point that neither of the MOS sensor manufacturers claim they measure CO2, rather their datasheets are clear that they are measuring wider gas concentrations and reporting a CO2-equivalent value. For example, the SGP30 datasheet states that it is measuring hydrogen concentration and using this as a proxy for CO2. It’s a shame the consumer-level devices using these sensors appear to have forgotten to mention this rather pertinent fact.

Figure 1: Temporal correlation for CO2 readings

To better understand whether the trends are consistent betweeen the sensors we can examine the correlation. The correlation in CO2 readings between the NDIR sensors is excellent, with an R2 of 0.997 and little apparent noise (Fig. 2). The iAQ-Core appears the better of the MOS sensors when correlated to the NDIR sensor values (R2 of around 0.67). The SGP30 on the other hand seems to have very poor correlation with any of the other sensors.

Sensor correlation for CO2 readings

Figure 2: Sensor correlation for CO2 readings

It could be argued the absolute CO2 level isn’t so relevant if we were looking to use the measurements for demand control, say of a ventilation system. In such situations all we’re really after is for the sensor to respond appropriately - that is, to go up when CO2 levels rise and down when they decrease. There is some evidence to suggest the MOS sensors may be reasonably effective at performing this role (Fig. 1); when the NDIR sensors suggest an increase in CO2 in most cases so too do the MOS sensors. But the latter response seems to be a fair bit noisier, particularly from the SGP30. This points to the intended purpose of these MOS-based “CO2-equivalent”" sensors, of providing a cheap means of demand control. For this purpose they may be sufficient. But using these sensors as a means of evaluating indoor air quality seems to push far beyond what these sensors are realistically capable of. And moreover, the cost difference between the MOS sensors (say $10-$40/unit) and NDIR sensors ($80-$120/unit) doesn’t seem so great when the difference in accuracy is taken into account.

What are MOS sensors doing?

It’s trivial to figure out what is going on with the iAQ-Core. For this sensor the CO2-equivalent is being calculated internally as a simple linear relationship to the TVOC gas concentration. This is shown in Fig. 3 - the sensor is simply multiplying the total volatile organic compound (TVOC) estimate by 3.63 and subtracting a small constant (5.53).

Correlation between TVOC and CO~2: iAQ-Core

Figure 3: Correlation between TVOC and CO~2: iAQ-Core

It’s a bit more complex with the SGP30. This device appears to be recalibrating itself at regular intervals, such that the relationship between TVOC and CO2 is not as clear (Fig. @fig:sgp-corr). Nonetheless, and as we would expect, there is a strong correlation between TVOC and CO2 readings from this sensor.

Correlation between TVOC and CO2: SGP30

Figure 4: Correlation between TVOC and CO2: SGP30

Further work

This is a work in progress. While it seems pretty definitive that only NDIR sensors for CO2 are fit for purpose, it’s not entirely clear what an appropriate solution is for indoor VOC and PM measurement. That’s next on the list.

There’s also the longer term issue of sensor drift, particularly for the single wavelength NDIR CO2 sensors. This will require long term testing in a practical situation to see just how well the single wavelength devices can avoid drift when only ever exposed to indoor air.

Conclusion

Based on this analysis there are two conclusions we can reasonably draw with reference to measuring indoor air quality:

  • it’s hard, and slick websites with nice marketing don’t miraculously improve sensor performance, and
  • NDIR sensors appear far more accurate than MOS sensors for CO2 measurement

Given the Foobot uses a MOS sensor (the iAQ-Core) I’d suggest this device isn’t fit for purpose for indoor air quality CO2 monitoring. For the other consumer-level devices we just don’t know without testing them, and ideally pulling them apart and checking what sensor they are using internally. But based on the evidence so far, only NDIR devices seem sufficiently accurate. And among the two tested here the dual wavelength Sensirion SCD30 is likely to offer the best long-term stability in an indoor environment where it’s less likely to be exposed to atmospheric CO2 concentrations regularly.


6 If the building has been certified the ventilation system installer will have provided documentation demonstrating the system has been installed and setup in accordance with the PHPP design. Of course, there’s nothing to stop the owner fiddling with the settings later, or indeed a lack of simple maintenance (like replacing filters) adversely affecting system performance.

7 This is far from a comprehensive list… and I don’t mean to pick on these devices to suggest they are any worse or better than others out there. But these are among those that seem to most often talked about.

8 “… the world’s most advanced indoor air quality sensor” says one, and there’s plenty that play to the heartstrings with claims about how their product can “keep your family safe”.

9 Examples include Sensirion, AMS, Bosch and Plantower among others.

10 Levels above 1,000 ppm are generally considered an indication of poor indoor air quality.

References

McGill, Grainne, Menghao Qin, and Lukumon Oyedele. 2014. “A Case Study Investigation of Indoor Air Quality in UK Passivhaus Dwellings.” Energy Procedia 62: 190–99.


  1. 1

  2. 2

  3. 3

  4. 3

  5. 4

  6. 1

  7. 2

  8. 3

  9. 4

  10. 5

comments powered by Disqus