Skip to main content

Python I2C Driver for Sensirion SCD4X

This repository contains the Python driver to communicate with a Sensirion sensor of the SCD4X family over I2C.

SCD4X picture

Click here to learn more about the Sensirion SCD4X sensor family.

Not all sensors of this driver family support all measurements. In case a measurement is not supported by all sensors, the products that support it are listed in the API description.

Supported sensor types

Sensor name I²C Addresses
SCD40 0x62
SCD41 0x62
SCD43 0x62

The following instructions and examples use a SCD41.

Connect the sensor

You can connect your sensor over a SEK-SensorBridge. For special setups you find the sensor pinout in the section below.

Sensor pinout

sensor wiring picture

Pin Cable Color Name Description Comments
1 yellow SCL I2C: Serial clock input
2 black GND Ground
3 red VDD Supply Voltage 2.4V to 5.5V
4 green SDA I2C: Serial data input / output

Documentation & Quickstart

See the documentation page for an API description and a quickstart example.

Contributing

Check coding style

The coding style can be checked with flake8:

pip install -e .[test]  # Install requirements
flake8                  # Run style check

In addition, we check the formatting of files with editorconfig-checker:

pip install editorconfig-checker==2.0.3   # Install requirements
editorconfig-checker                      # Run check

License

See LICENSE.

Metadata

Release files for sensirion-i2c-scd4x 1.1.0

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

Source distribution (sdist)

Source distribution for sensirion-i2c-scd4x 1.1.0
File Size Uploaded Provenance Actions
sensirion_i2c_scd4x-1.1.0.tar.gz 15.0 kB Without provenance Details for sensirion_i2c_scd4x-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sensirion-i2c-scd4x 1.1.0
File Interpreter ABI Platform Actions
sensirion_i2c_scd4x-1.1.0-py3-none-any.whl Python 3 none any Details for sensirion_i2c_scd4x-1.1.0-py3-none-any.whl

Total release size: 31.3 kB

Release files / sensirion_i2c_scd4x-1.1.0.tar.gz

Download URL sensirion_i2c_scd4x-1.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ea454fb236892b6eb434333d8208fa8c08fa2187352481fc90938e0c5262cb9
BLAKE2b-256 checksum
How to use checksums
ba5c9bc79a9d6dccfadcbb80c63b8766ea6eda9fd4265954ba9b2adcf46e9deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / sensirion_i2c_scd4x-1.1.0-py3-none-any.whl

Download URL sensirion_i2c_scd4x-1.1.0-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29d002b088c87cdf2c039a2b3aa3241d5f70b4caef68f2c0fa0a93661fd6c237
BLAKE2b-256 checksum
How to use checksums
c3b8ecdb86e9a145535245235460a5ccc0dc4f9638665f2fc5006450b27999e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for sensirion-i2c-scd4x 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

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