# Python I2C Driver for Sensirion STC42
This repository contains the Python driver to communicate with a Sensirion STC42A sensor over I2C.
<img src="https://raw.githubusercontent.com/Sensirion/python-i2c-stc42/master/images/product-image.png"
width="300px" alt="STC42 picture">
Click [here](https://sensirion.com/products/catalog/STC42A) 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](https://sensirion.com/products/catalog/STC42A) is **0x29**.
Additionally supported I²C addresses are 0x2A, 0x2B.
## Connect the sensor
You can connect your sensor over a [SEK-SensorBridge](https://developer.sensirion.com/product-support/sek-sensorbridge/).
For special setups you find the sensor pinout in the section below.
<details><summary>Sensor pinout</summary>
<p>
<img src="https://raw.githubusercontent.com/Sensirion/python-i2c-stc42/master/images/product-pinout.jpg"
width="300px" alt="sensor wiring picture">
| *Pin* | *Cable Color* | *Name* | *Description* | *Comments* |
|-------|---------------|:------:|----------------|------------|
| 1 | black | GND | Ground |
| 2 | red | VDD | Supply Voltage | 3.15V to 3.45V
| 3 | blue | SDA | I2C: Serial data input / output |
| 4 | yellow | SCL | I2C: Serial clock input |
</p>
</details>
## Documentation & Quickstart
See the [documentation page](https://sensirion.github.io/python-i2c-stc42) for an API description and a
[quickstart](https://sensirion.github.io/python-i2c-stc42/execute-measurements.html) example.
## Contributing
### Check coding style
The coding style can be checked with [`flake8`](http://flake8.pycqa.org/):
```bash
pip install -e .[test] # Install requirements
flake8 # Run style check
```
In addition, we check the formatting of files with
[`editorconfig-checker`](https://editorconfig-checker.github.io/):
```bash
pip install editorconfig-checker==2.0.3 # Install requirements
editorconfig-checker # Run check
```
## License
See [LICENSE](LICENSE).
Raw data
{
"_id": null,
"home_page": null,
"name": "sensirion-i2c-stc42",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.6",
"maintainer_email": null,
"keywords": "Sensirion STC42\r\n I2C\r\n STC42A",
"author": "Sensirion",
"author_email": "info@sensirion.com",
"download_url": "https://files.pythonhosted.org/packages/d2/34/0fa57a0afec7d2f7939cea4d7d8579e91f8141639cb34e91b30d05c95b8c/sensirion_i2c_stc42-1.0.1.tar.gz",
"platform": null,
"description": "# Python I2C Driver for Sensirion STC42\r\n\r\nThis repository contains the Python driver to communicate with a Sensirion STC42A sensor over I2C.\r\n\r\n<img src=\"https://raw.githubusercontent.com/Sensirion/python-i2c-stc42/master/images/product-image.png\"\r\n width=\"300px\" alt=\"STC42 picture\">\r\n\r\n\r\nClick [here](https://sensirion.com/products/catalog/STC42A) to learn more about the Sensirion STC42A sensor.\r\n\r\n\r\nThe STC42A is a sensor for measuring hydrogen in air.\r\n\r\n\r\n\r\nThe default I\u00c2\u00b2C address of [STC42A](https://sensirion.com/products/catalog/STC42A) is **0x29**.\r\nAdditionally supported I\u00c2\u00b2C addresses are 0x2A, 0x2B.\r\n\r\n\r\n## Connect the sensor\r\n\r\nYou can connect your sensor over a [SEK-SensorBridge](https://developer.sensirion.com/product-support/sek-sensorbridge/).\r\nFor special setups you find the sensor pinout in the section below.\r\n\r\n<details><summary>Sensor pinout</summary>\r\n<p>\r\n<img src=\"https://raw.githubusercontent.com/Sensirion/python-i2c-stc42/master/images/product-pinout.jpg\"\r\n width=\"300px\" alt=\"sensor wiring picture\">\r\n\r\n| *Pin* | *Cable Color* | *Name* | *Description* | *Comments* |\r\n|-------|---------------|:------:|----------------|------------|\r\n| 1 | black | GND | Ground |\r\n| 2 | red | VDD | Supply Voltage | 3.15V to 3.45V\r\n| 3 | blue | SDA | I2C: Serial data input / output |\r\n| 4 | yellow | SCL | I2C: Serial clock input |\r\n\r\n\r\n</p>\r\n</details>\r\n\r\n\r\n## Documentation & Quickstart\r\n\r\nSee the [documentation page](https://sensirion.github.io/python-i2c-stc42) for an API description and a\r\n[quickstart](https://sensirion.github.io/python-i2c-stc42/execute-measurements.html) example.\r\n\r\n\r\n## Contributing\r\n\r\n### Check coding style\r\n\r\nThe coding style can be checked with [`flake8`](http://flake8.pycqa.org/):\r\n\r\n```bash\r\npip install -e .[test] # Install requirements\r\nflake8 # Run style check\r\n```\r\n\r\nIn addition, we check the formatting of files with\r\n[`editorconfig-checker`](https://editorconfig-checker.github.io/):\r\n\r\n```bash\r\npip install editorconfig-checker==2.0.3 # Install requirements\r\neditorconfig-checker # Run check\r\n```\r\n\r\n## License\r\n\r\nSee [LICENSE](LICENSE).\r\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "I2C driver for the Sensirion STC42 sensor family",
"version": "1.0.1",
"project_urls": {
"Changelog": "https://github.com/Sensirion/python-i2c-stc42/blob/master/CHANGELOG.md",
"Documentation": "https://sensirion.github.io/python-i2c-stc42",
"Repository": "https://github.com/Sensirion/python-i2c-stc42"
},
"split_keywords": [
"sensirion",
"stc42\r\n",
"",
"",
"",
"",
"",
"",
"",
"i2c\r\n",
"",
"",
"",
"",
"",
"",
"",
"stc42a"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2efc8c9f5ac6ce5abc4713130b57f5e8d6d480fc7eafeaa709602ac185a6ed90",
"md5": "2523b420471938484b14a6d9bfb308d1",
"sha256": "33bf511f6b7348098ad8e482da1b125dfaebba34c2f20f8a062019833e988953"
},
"downloads": -1,
"filename": "sensirion_i2c_stc42-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2523b420471938484b14a6d9bfb308d1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.6",
"size": 11916,
"upload_time": "2025-09-10T07:24:38",
"upload_time_iso_8601": "2025-09-10T07:24:38.762253Z",
"url": "https://files.pythonhosted.org/packages/2e/fc/8c9f5ac6ce5abc4713130b57f5e8d6d480fc7eafeaa709602ac185a6ed90/sensirion_i2c_stc42-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "d2340fa57a0afec7d2f7939cea4d7d8579e91f8141639cb34e91b30d05c95b8c",
"md5": "18b4cfb395b08d6af5b5882ac7dc2e93",
"sha256": "b2aa66b1c4b4c1ea0126c6584e3738856c1c73fb907d653f06cd82e0f46c8178"
},
"downloads": -1,
"filename": "sensirion_i2c_stc42-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "18b4cfb395b08d6af5b5882ac7dc2e93",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.6",
"size": 11540,
"upload_time": "2025-09-10T07:24:39",
"upload_time_iso_8601": "2025-09-10T07:24:39.922299Z",
"url": "https://files.pythonhosted.org/packages/d2/34/0fa57a0afec7d2f7939cea4d7d8579e91f8141639cb34e91b30d05c95b8c/sensirion_i2c_stc42-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-10 07:24:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Sensirion",
"github_project": "python-i2c-stc42",
"github_not_found": true,
"lcname": "sensirion-i2c-stc42"
}