README.rst
1.. zephyr:code-sample:: co2
2 :name: Generic CO2 polling sample
3 :relevant-api: sensor_interface
4
5 Get CO2 data from a sensor (polling mode).
6
7Overview
8********
9
10A sensor sample that demonstrates how to poll a CO2 sensor.
11
12Building and Running
13********************
14
15This sample reads the CO2 sensor and print the values continuously.
16
17.. zephyr-app-commands::
18 :zephyr-app: samples/sensor/co2_polling
19 :board: <board to use>
20 :goals: build flash
21 :compact:
22
23Sample Output
24=============
25
26.. code-block:: console
27
28 CO2 940 ppm
29 CO2 950 ppm
30
31<repeats endlessly>
32