Skip to main content

Python I2C Driver for Sensirion STC42

This repository contains the Python driver to communicate with a Sensirion STC42A sensor over I2C.

STC42 picture

Click here to learn more about the Sensirion STC42A sensor.

The STC42A is a sensor for measuring hydrogen in air.

The default I²C address of STC42A is 0x29. Additionally supported I²C addresses are 0x2a, 0x2b.

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 black GND Ground
2 red VDD Supply Voltage 3.15V to 5.25V
3 blue SDA I2C: Serial data input / output
4 yellow SCL I2C: Serial clock input

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-stc42 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-stc42 1.1.0
File Size Uploaded Provenance Actions
sensirion_i2c_stc42-1.1.0.tar.gz 720.9 kB Without provenance Details for sensirion_i2c_stc42-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 733.2 kB

Release files / sensirion_i2c_stc42-1.1.0.tar.gz

Download URL sensirion_i2c_stc42-1.1.0.tar.gz
Size 720.9 kB
Tags Source
SHA-256 checksum
How to use checksums
93fcb09a3dcb31e07ec6bf6f9f3fb8ccaebdd9488464ddd921ac55b257f807eb
BLAKE2b-256 checksum
How to use checksums
30bb13788d9fc11898c64df0b7983cf2e3d25028d4ea7388cf679acd52d4d96d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

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

Download URL sensirion_i2c_stc42-1.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73915f1cdc4d07d31995243cc2fe472754bb0f2810bc44cd25f7d88c0bf4dc9c
BLAKE2b-256 checksum
How to use checksums
024339fc60f3e63adbddabfc3907e04559ee00db90653f919fc972d6db9fd929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for sensirion-i2c-stc42 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.

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