Access function to read sensor values from the co20 air sensor
The co20 air sensor sold by conrad as co20 Luftqualitätssensor or by Velux as Raumluftfühler features a chipset by AppliedSensor. It measures the general air quality. This package uses the USB HID abstraction layer to access the co20 stick. The co20 is automatically detected as HID device by OSX and Windows and can probably also be detected as HID device under Linux, tho I have not tried this yet.
To build you need to have HID API installed.
On OSX you can for example install it using homebrew by doing:
brew install hidapi
On Windows just download the current archive and extract it. For Windows you need to modify Makefile.mingw and set the path where you extracted HID API. Also you need mingw to compile on Windows.
Just run
make
Run mingw32-make
This will build the example application air_csv wich periodically reads the air value and writes it to air.csv
I added a gnuplot file to create graphs based upon the created csv files. Just run air.p to generate them.