Meteorology · Agriculture · Air quality · Technical guides

Atmospheric CO₂ at the weather station: how to measure outdoor carbon dioxide with an NDIR sensor, correct for pressure and humidity, and read the daily cycle

A didactic guide to measuring outdoor CO₂ with an NDIR sensor at the weather station: signal magnitudes (NOAA background, daily cycle, local sources), NDIR principle, pressure and temperature correction with a 1000 m example, dry-air conversion, the ABC auto-calibration trap, choosing range and output, concentration vs flux, reference-gas calibration and co-location, installation, quality control and Brazilian references.

By HenSistemas · · 16 min read

Outdoor CO₂ sensor inside a white multi-plate radiation shield with mounting brackets

Carbon dioxide is the variable attracting the most interest outside official networks. Agronomy, ecology, environmental engineering, geography and data science groups want to know how much CO₂ there is over a crop, inside a forest, on a campus or along a traffic corridor — and they want that data next to the weather station, minute by minute. The most accessible route is an outdoor NDIR CO₂ sensor with a radiation shield, wired to the station's data logger.

This guide is for professors, graduate students and technicians who are about to do exactly that. The goal is to explain what the sensor actually measures, why pressure, temperature and water vapour enter the equation, what to expect from the daily cycle and, above all, what this type of sensor can and cannot answer in a thesis. We have already covered ozone and NO₂ with an air quality station; CO₂ has its own physics, orders of magnitude and pitfalls.

Order of magnitude: the signal you want to see

Before choosing a sensor, understand the size of the signals. According to NOAA's Global Monitoring Laboratory, the annual mean CO₂ at Mauna Loa was 424.61 ppm in 2024 and 427.35 ppm in 2025, with growth of 3.33 ppm and 2.23 ppm in those years. That is the atmospheric "background". On top of it, the surface produces much larger variations:

  • Daily cycle: at night the boundary layer becomes stable and shallow; soil and plant respiration accumulate CO₂ near the ground. After sunrise, photosynthesis consumes CO₂ while the mixing layer grows and dilutes it. The result is a maximum before dawn and a minimum in the afternoon. On a rooftop evaluated by Martin et al. (2017), the daily amplitude ranged from about 10 ppm to more than 100 ppm, depending on the synoptic situation.
  • Local sources: vehicle exhaust, chimneys, fires and even people nearby generate peaks of tens to hundreds of ppm within minutes.
  • Long-term trend: 2 to 3 ppm per year.

Now compare that with the typical performance of a compact NDIR sensor. The CO₂ sensor with analog output in our catalog, for example, states an accuracy of ±50 ppm + 2% of reading at 25 °C and a stability of ±40 ppm/year on its product sheet. The conclusion is didactic and important:

A compact NDIR sensor, properly installed and calibrated, resolves the daily cycle, events and local sources. It does not measure the climate trend in CO₂, nor the difference between your site and the regional background with the rigour of a reference network. For that, the WMO Global Atmosphere Watch (GAW) sets inter-laboratory compatibility goals of 0.1 ppm — three orders of magnitude below the factory accuracy of a compact sensor.

Frame your scientific question within what the instrument delivers. "How does CO₂ vary between night and day over pasture and forest?" is a good question for this sensor. "How much has my city's CO₂ risen since last year?" is not.

How NDIR works

NDIR stands for non-dispersive infrared. A source emits infrared light, the light crosses a chamber containing the sampled air, and a detector with an optical filter centred on the CO₂ absorption band (around 4.26 µm) measures how much arrives. The more CO₂ molecules in the path, the weaker the signal — that is the Beer-Lambert law. A second channel, outside the CO₂ band, acts as a reference to compensate for source ageing and dirt on the optics.

Two aspects of this physics matter to researchers:

  1. The sensor counts molecules per volume, not ppm. What it "sees" is the CO₂ density in the optical path. Converting to ppm (mole fraction) depends on the pressure and temperature of the gas in the chamber.
  2. Water vapour dilutes the air. The reference ppm in climate science is the mole fraction in dry air. A sensor without drying measures the mole fraction in moist air, which is lower.

Pressure and temperature: the correction many people forget

From the ideal gas law, the molar density of air is proportional to P/T. If the sensor was calibrated at sea level (1013.25 hPa) and does not compensate for pressure internally, readings elsewhere are multiplied by P/P₀. The correction is:

C_corrected = C_read × (P₀ / P) × (T / T₀)

with P and T measured on site (T in kelvin) and P₀, T₀ the calibration conditions stated by the manufacturer.

Numerical example. A station at about 1000 m altitude, as in much of Brazil's Central Plateau, has a typical pressure near 899 hPa. With true CO₂ at 427 ppm, a sensor that does not compensate for pressure would read about 427 × 899/1013 ≈ 379 ppm — almost 50 ppm too low, purely because of altitude. In addition, pressure changes by a few hPa as fronts pass, creating spurious oscillations of a few ppm if left uncorrected.

Temperature works the same way: a 10 °C difference from calibration changes density by about 3%, or roughly 14 ppm at 427 ppm. Many NDIR modules have internal temperature compensation; pressure compensation is less common. Read the datasheet and manual to find out what your sensor already corrects, and always log pressure alongside CO₂ — the air pressure transmitter with SDI-12 output handles that at the station. We cover the measurement in detail in atmospheric pressure at the weather station.

Water vapour: from moist air to dry air

The water vapour mole fraction is the ratio of vapour partial pressure (e) to total pressure (P). At 25 °C, saturation vapour pressure is about 3.17 kPa; at 80% relative humidity, e ≈ 2.53 kPa. At sea level that gives x_v ≈ 2.5%. The conversion is:

C_dry = C_moist / (1 − x_v)

If dry air contains 427 ppm, a sensor without drying would see about 427 × (1 − 0.025) ≈ 416 ppm — 11 ppm less on a hot, humid day, and a difference that changes through the day along with humidity. In tropical climates this correction is mandatory if you want to compare your data with reference series. That is why you should measure temperature and relative humidity at the same point as CO₂; the relative humidity and temperature sensor with SDI-12 output is the natural choice for a research station. On humidity physics and shields, see air temperature and humidity at the weather station.

The automatic calibration trap (ABC)

Many NDIR sensors ship with automatic baseline calibration (ABC). The algorithm assumes that at some point in each period (usually a few days) the sensor "sees" clean outdoor air at around 400 ppm, and adjusts the zero so that the lowest reading of the period lands on that value. The wireless CO₂ sensor in our catalog, for instance, explains on its sheet that in automatic mode it must be exposed daily to fresh air "at around 400 ppm".

Indoors, this works reasonably well. Outdoors, it is a problem:

  • Today's background already exceeds 427 ppm. If the algorithm forces the minimum to 400 ppm, the sensor acquires a negative bias of 25 to 30 ppm.
  • Near cities, or over crops at night, the period minimum may be even higher, and the bias grows.
  • Adjustments happen in jumps, creating artificial steps in the series.

For research, disable automatic calibration when the sensor allows it, or know exactly which reference value and period it uses, and replace it with periodic checks against reference gas or co-location.

The main instrument: outdoor CO₂ sensor with shield

The instrument in this guide is the outdoor CO₂ sensor with radiation shield and mounting brackets. According to the product sheet, it offers:

  • Measuring ranges: 0–2000 ppm, 0–5000 ppm or 0–10,000 ppm;
  • Power supply: 12–24 VDC;
  • Outputs: 4–20 mA, 0–5 V or RS485;
  • Multi-plate radiation shield and brackets for mast mounting.

How do you choose a range? Outdoors, 0–2000 ppm is the natural option: it covers the background, nocturnal build-up and most local events, and on an analog output each mA or volt represents fewer ppm, improving effective resolution. Wider ranges suit environments with strong sources — greenhouses with CO₂ enrichment, livestock buildings, monitoring near industrial sources.

The sheet on the website does not detail accuracy, stability, response time or pressure compensation for the outdoor model. Request the full datasheet before finalising your method and record those numbers in your research plan; they define the uncertainty you will report.

Why the shield matters

The multi-plate shield is not only there to keep rain off. It reduces solar heating of the sensor, which stabilises the temperature of the optical chamber (and therefore its compensation), prevents direct condensation on the optics and keeps natural ventilation so the sample is renewed. It is the same logic as the thermo-hygrometer shield: without it, daytime data carry a bias that changes with radiation.

Analog or digital output?

  • 4–20 mA is robust over long cables and immune to voltage drops; it is the classic choice for a field station.
  • 0–5 V is simple, but sensitive to noise and voltage drop on long cables.
  • RS485 lets you read concentration digitally, with no resolution lost in analog conversion, and connect several devices on the same bus. Check the manual for the communication protocol and available registers.

In any case, configure the logger for the same range as the sensor: a 4–20 mA signal from a 0–2000 ppm sensor interpreted as 0–5000 ppm produces data wrong by a factor of 2.5 — a more common mistake than you might think.

Meteorology inside the concentration

CO₂ measured at the surface results from sources, sinks and atmospheric mixing. Interpreting it without the weather station means interpreting only half the story.

  • Wind: low speed at night indicates a stable layer and build-up; direction shows where plumes come from (highway, city, fire). With direction and concentration you can build a concentration rose by sector.
  • Solar radiation and PAR: photosynthesis only starts with light; the afternoon minimum over vegetation follows radiation. See photosynthetically active radiation (PAR).
  • Soil temperature and soil moisture: they control respiration and therefore nocturnal build-up.
  • Rain: pulses of soil respiration after rain on dry soil (the "Birch effect") can show up as nocturnal CO₂ increases.

An all-in-one compact weather station delivers wind, temperature, humidity, pressure and radiation in a single body, which makes it easier to set up a complete CO₂ site.

Concentration is not flux

A frequent confusion in projects: CO₂ concentration is not CO₂ flux. To measure net exchange between ecosystem and atmosphere (in µmol m⁻² s⁻¹), the reference technique is eddy covariance, which requires fast-response gas analysers (10–20 Hz) synchronised with a 3D sonic anemometer. A compact NDIR sensor, with a response time of tens of seconds, cannot do this.

What it does well, and with great value for research:

  • Daily and seasonal cycles of concentration near the surface;
  • Vertical profiles (two or three sensors at different heights on a mast) to study nocturnal build-up and CO₂ storage below the canopy;
  • Spatial gradients between land uses (forest × pasture × city);
  • Event detection (fires, urban plumes, point emissions);
  • Support for soil chambers and greenhouses, as outdoor-air context.

In Brazil, the reference for Amazonian CO₂ comes from high-precision networks such as the ATTO tower (325 m tall, in Amazonas state, operated by INPA and the Max Planck Institute) and the aircraft profiles of INPE's Greenhouse Gas Laboratory, the basis of the study by Gatti et al. (2021) in Nature, which showed parts of Amazonia acting as a carbon source. Compact sensors do not replace these networks, but they make it possible to densify observation and bring the topic to campuses, experimental farms and cities. The BEACO2N urban network in California is an example of how dense networks of moderate-cost sensors, carefully calibrated, become a scientific instrument.

Calibration and field verification

Even a good sensor needs traceability. Three levels, from simplest to most rigorous:

  1. Zero check: expose the sensor to pure nitrogen or CO₂-free air (for example, passed through a CO₂ scrubber) and check the reading. Useful for detecting gross drift.
  2. Two points with reference gas: zero plus a certified gas close to the working range (for example, 450 to 500 ppm), preferably traceable to the WMO scale (WMO X2019). Do it before the campaign, every few months and at the end.
  3. Co-location: leave the sensor for a few weeks next to a high-precision analyser (cavity spectroscopy or laboratory NDIR with drying) and fit a correction model. Martin et al. (2017) showed that by correcting for temperature, pressure and water vapour with multivariate regression and individual calibration, the root mean square error of low-cost NDIR sensors fell from about 5–21 ppm to 1.7–4.3 ppm for 1-minute data.

Two simple practices greatly improve quality:

  • Intercalibrate all sensors in a network side by side before and after the campaign. Differences between sensors matter more than absolute accuracy when the question is about gradients.
  • Record the date of each check and the value found, so drift can be corrected by linear interpolation between checks.

Where and how to install

  • Height: for concentration representative of the site, 2 to 3 m above the ground or low canopy is a common standard; for profiles, use fixed, documented heights.
  • Distance from sources: keep away from exhaust pipes, chimneys, generators, ventilation outlets and places where people circulate. Human breath contains tens of thousands of ppm of CO₂; a technician standing next to the sensor contaminates the reading.
  • Exposure: keep the shield clear, with no obstacles to the wind, and on a mast separate from solar panels that heat their surroundings.
  • Warm-up: NDIR sensors need a few minutes to stabilise after power-up. If the station cycles power to save battery, discard readings from the warm-up period.
  • Power and telemetry: size the panel and battery for the sensor's continuous consumption and use a logger with local storage and cellular transmission. The data logger for weather station with cellular module is an option for the meteorological variables; confirm input compatibility with the chosen sensor. We discuss communication in weather station telemetry.
  • Clock in UTC: synchronise all loggers and store in UTC, so CO₂, wind and radiation line up without offsets.

Data quality control

  • Physical limits: outdoor values below ~380 ppm under normal conditions indicate calibration error, improper automatic calibration or missing pressure correction.
  • Rate of change: jumps of hundreds of ppm within seconds, without light wind or a known source, suggest local contamination or failure.
  • Warm-up and maintenance periods: flag and exclude them.
  • Consistency with meteorology: the maximum should appear at night or dawn with light wind; the minimum in the afternoon with a developed mixing layer. An inverted pattern deserves investigation.
  • Applied corrections: keep raw data and the corrected versions (pressure, temperature, dry air, calibration) together with the formula used. Reviewers ask for this.

How to choose

  • I want outdoor CO₂ at a research station, with a shield and an output for the logger: the outdoor CO₂ sensor with radiation shield, on the 0–2000 ppm range.
  • I will install in a greenhouse, barn or sheltered environment and want a sheet with stated accuracy and drift: the CO₂ sensor with analog output, which states ±50 ppm + 2% of reading and stability of ±40 ppm/year.
  • I want indoor CO₂ on a long-range wireless network: the wireless CO₂ sensor, compatible with Aranet base stations; the sheet specifies indoor use.
  • I need a portable instrument for transects, quick checks and point comparisons: the CO₂, temperature and humidity data logger, with internal memory and USB interface.

Related products

Checklist before using the data in your thesis

  1. Does the scientific question fit the sensor's uncertainty (daily cycle, events, gradients — not climate trend)?
  2. Was automatic calibration disabled or documented?
  3. Were pressure, temperature and humidity measured at the same point and on the same clock?
  4. Were pressure and dry-air corrections applied and described with formulas?
  5. Was there a reference-gas check or co-location before and after the campaign?
  6. Were the network's sensors intercalibrated side by side?
  7. Were warm-up, maintenance and contamination periods flagged and excluded?
  8. Are raw data and corrected versions archived?

If the answer is "yes" to all of them, your CO₂ stops being a dashboard number and becomes scientific data.

References

  • NOAA Global Monitoring Laboratory. Trends in Atmospheric Carbon Dioxide — Mauna Loa annual mean and growth rate. Available at: gml.noaa.gov/ccgg/trends.
  • Martin, C. R.; Zeng, N.; Karion, A.; Dickerson, R. R.; Ren, X.; Turpie, B. N.; Weber, K. J. Evaluation and environmental correction of ambient CO₂ measurements from a low-cost NDIR sensor. Atmospheric Measurement Techniques, v. 10, p. 2383–2395, 2017. DOI: 10.5194/amt-10-2383-2017.
  • Shusterman, A. A. et al. The BErkeley Atmospheric CO₂ Observation Network: initial evaluation. Atmospheric Chemistry and Physics, v. 16, p. 13449–13463, 2016. DOI: 10.5194/acp-16-13449-2016.
  • Gatti, L. V. et al. Amazonia as a carbon source linked to deforestation and climate change. Nature, v. 595, p. 388–393, 2021. DOI: 10.1038/s41586-021-03629-6.
  • World Meteorological Organization. Global Atmosphere Watch — recommendations of the expert meeting on CO₂, other greenhouse gases and related measurement techniques (GGMT), including network compatibility goals.
  • Hensistemas product sheet: outdoor CO₂ sensor with radiation shield.

Instruments for this application

Back to the blog