Skip to main content

Python module for CozIR Ambient CO2 sensors

Project description

ambientco2

Python module for CozIR Ambient CO2 sensors

The CozIR Ambient family of sensors all provide CO2 measurements, at different ranges. Some are able to measure temperature and relative humidity as well. The sensors use serial UART and analog voltage output.

This library has been developed using a CozIR Ambient 0-5000 ppm CO2 (only) sensor.

Development

Milestone Features Version Status
Beta Basic reading 0.x.x :heavy_check_mark:
Launch Modes, settings 1.x.x
Sensors Range, CO2, relative humidity, temperature 2.x.x

Library Documentation

Add the following line to use this libraray:

from ambientco2 import Sensor

Member functions

Name Parameters Returns Description
Sensor() str serial_device void Constructor
setup() int mode, int fields void Sensor setup
read() str value int Reads CO2 concentration in PPM

Installation

pip

$ pip install ambientco2

Usage

from ambientco2 import Sensor

serial_device = "/dev/ttyUSB0"    # Debian (Ubuntu, Raspberry Pi OS etc.)

sensor = Sensor(serial_device)

co2 = sensor.read()

print(type(co2))
print(co2)

See get_co2.py for a basic example

Sensor Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ambientco2, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size ambientco2-0.1.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page