Skip to main content

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

Release files for ambientco2 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ambientco2 0.1.1
File Size Uploaded
ambientco2-0.1.1.tar.gz 3.5 kB Details

Release files / ambientco2-0.1.1.tar.gz

Download URL ambientco2-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7f96d7ca6f6c07d3c445a3ce054ea94cc72cba67260654f214760148e214bbaa
BLAKE2b-256 checksum
How to use checksums
0eedbf9edc56d2e49e410993f8bc26a5b76ba7d316e74e630ceb501654f7c7c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page