Skip to main content

Python 3 library for the Sensirion SCD30 sensor

Project description


Python library for the Sensirion SCD30 co2, temperature, humidity sensor.

I2C Clock stretching

Master needs to support Clock Stretching up to 150ms. The default in Raspbian is too low, we have to increase it:

To set it, download from here:


gcc -o i2c1_set_clkt_tout i2c1_set_clkt_tout.c
gcc -o i2c1_get_clkt_tout i2c1_get_clkt_tout.c

execute (add to /etc/rc.local to run on every boot):

./i2c1_set_clkt_tout 20000 # for 200ms


I borrowed some code and ideas from these two repos: (python code, i2c clock stretching) (code structure, commands)

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 scd30, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size scd30-0.0.3-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size scd30-0.0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page