Instructions
console, by typing the following commands:
$ cd /home/pi/pi_aq
$ python3
Open the local aq module by typing the command:
>>> from aq import AQ
>>>
Then create an instance of the AQ class by typing:
>>> aq = AQ()
>>>
We can now read the CO2 level by typing the command:
>>> aq.get_eco2()
434.0
>>>
So in this case, the eCO2 level is a nice fresh 434 ppm. Lets get the temperature
now (in degrees Celcius).
>>> aq.get_temp()
20.32
Note: If you get error messages when running the code above, you may not have
GUIZero installed. Installation instructions here:
https://lawsie.github.io/guizero/#raspberry-pi
Page 12