The latest development version of this page may be more current than this released 3.7.0 version.

Generic CO2 polling sample

Overview

A sensor sample that demonstrates how to poll a CO2 sensor.

Building and Running

This sample reads the CO2 sensor and print the values continuously.

west build -b <board to use> samples/sensor/co2_polling
west flash

Sample Output

CO2 940 ppm
CO2 950 ppm

<repeats endlessly>