How do the frog sensors measure CO2 concentration?

The concentration of CO2 in the air is measured using a Nondispersive infrared (NDIR) sensor. These sensors are a type of spectroscopic instrument, that is they measure light and how that light interacts with a material at specific wavelengths. In the case of measuring CO2, light at a wavelength in the mid-infrared part of the electromagnetic spectrum is emitted, passes through a small chamber that is open to the outside air, and a detector then measures the intensity of that light. Light at the mid-infrared wavelength of 4.26 μm (4.26 x 10^-6 meters) in particular is absorbed by CO2 molecules. That means that a portion of the emitted light will effectively be blocked by CO2 in the air in proportion to the amount of CO2. The difference between the intensity of the emitted light and the intensity of the detected light can be used to determine the CO2 concentration.

https://github.com/Ribbit-Network/ribbit-network-faq/raw/main/co2_transmitance.jpg

This plot from the National Institute of Standards and Technology shows the transmittance of light (y-axis) through CO2 across a range of wavelengths (x-axis).

Note the narrow dip in transmittance down to nearly zero left of the 5 μm mark. This is the 4.26 μm absorption band of CO2 that the NDIR sensors are looking for. These measurements need to take into account air temperature and pressure, which is why the frog sensors also measure these properties. The ideal gas law, in the form PV = nRT describes the relationship between the pressure (P), volume (V), temperature (T), and amount of a gas substance (n) with the ideal gas constant (R). We are interested in measuring the concentration of CO2 in ppm (parts per million) which is a ratio of the number of CO2 molecules to the total number of molecules in a sample volume of air. The NDIR sensor however, is measuring through spectroscopy the amount of CO2 (n) in a particular volume Rearranging the ideal gas law equation we can get n/V = R(P/T), showing that concentration per volume (n/V) will be proportional to pressure (P) and inversely proportional to temperature (T). This means that as air pressure increases more air molecules will be within the sample volume and we can expect the amount of CO2 detected in that volume to be greater even though the ratio of CO2 to total air molecules remains the same. Conversely as temperature increases and air molecules move around faster fewer air molecules will be within the sample volume and we can expect the amount of CO2 detected in that volume to be smaller. Read more details about how temperature and pressure affect NDIR CO2 measurements here.

What "should" the CO2 data look like?

If you have completed assembling and setting up your frog sensor or if you are looking at data on the dashboard you might be wondering what the CO2 data plotted over time "should" look like, or why it looks the way it does.

https://github.com/Ribbit-Network/ribbit-network-faq/raw/main/co2_example.jpg

Cycles and patterns:

Plants take up CO2 for use in photosynthesis during the day. Your CO2 sensor may pick up on this daily (also called diurnal) cycle! In areas with lots of vegetation, you may see CO2 concentrations rise during the nighttime when plants are not performing photosynthesis, but as the sun rises and plants "wake up" the CO2 levels may decrease. You can see evidence of this cycle in the plot above. This plant-driven cycle also changes seasonally, with deciduous vegetation active in the summer lowering CO2 concentrations, and inactive in the winter allowing CO2 concentrations to rise. In fact, because most of Earth's forests are located in the Northern Hemisphere,this seasonal cycle can be seen in global estimates of atmospheric CO2. During the Northern Hemisphere summer global average CO2 is less than that in the Northern Hemisphere winter. Read more about the differences in CO2 patterns by latitude in this article from the Scripps Institution of Oceanography.

You may also see diurnal patterns caused by human activity. If your sensor is in an urban or suburban residential area you may see increases in CO2 concentration during peak hours of car traffic, such as from morning and afternoon commutes as people drive to and from workplaces. In the plot above, there are some rises in CO2 concentration (not the narrowest spikes though) around 8 am and 5 pm on the 17th that may be caused by car traffic.

For more examples, see this research paper (Imasu & Tanabe, 2018) which used NDIR CO2 sensors at different locations around Tokyo, Japan to look at CO2 concentration patterns.

Noisy data or spikes

You may see "noisy" data where the CO2 measurements bounces up and down minute to minute creating jagged lines on the plots (such as in the plot above). This is to be expected somewhat, and can likely be attributed to the accuracy of the NDIR sensors. These relatively low-cost sensors have a manufacturer stated accuracy of +/- 30 ppm. This means that even if the local CO2 concentration is not changing, the measurements may bounce around by this amount.

Do you see "spikes" in the CO2 concentration where it rises steeply much more than typical noise, then drops back down over the course of several minutes?

This is likely not noise, but a true measurement of air with elevated CO2! Think about the placement of your sensor, is it near a road or parking lot where passing or idling cars can create a "cloud" of exhaust that blows by the sensor? These spikes are signatures of nearby CO2 sources before the gas has dispersed. The plot above has several big jumps in CO2 concentration in the morning and in the evening, likely due to the sensor being installed near a parking lot, it could be picking up on local emissions from cars coming and going from the parking lot.

What is the precision of the Frog CO2 sensor?

The Sensirion SCD-30 - NDIR CO2 sensor has an accuracy of +/- 30ppm (+3%) and a range between 400ppm and 1000ppm.

With proper calibration and data post-processing to account for environment variables, this precision can be improved (see https://acp.copernicus.org/articles/16/13465/2016/). Placement of some frog sensors next to high quality reference equipment allows for calibration update and drift compensation. Ribbit Network is currently partnering with several research institutions to investigate this calibration method so that in a dense network of the low cost sensors, outliers can be detected and serviced.