Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython module for use with the SI7021 Temperature and Humidity Sensor.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-si7021

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-si7021

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-si7021

Usage Notes

Of course, you must import the library to use it:

import adafruit_si7021

This driver takes an instantiated and active I2C object (from the busio or the bitbangio library) as an argument to its constructor. The way to create an I2C object depends on the board you are using. For boards with labeled SCL and SDA pins, you can:

from busio import I2C
from board import SCL, SDA

i2c = I2C(SCL, SDA)

Once you have created the I2C interface object, you can use it to instantiate the sensor object:

sensor = adafruit_si7021.SI7021(i2c)

And then you can start measuring the temperature and humidity:

print(sensor.temperature)
print(sensor.relative_humidity)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Metadata

Release files for adafruit-circuitpython-si7021 4.1.3

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

Source distribution (sdist)

Source distribution for adafruit-circuitpython-si7021 4.1.3
File Size Uploaded Provenance Actions
adafruit-circuitpython-si7021-4.1.3.tar.gz 30.3 kB Without provenance Details for adafruit-circuitpython-si7021-4.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-si7021 4.1.3
File Interpreter ABI Platform Actions
adafruit_circuitpython_si7021-4.1.3-py3-none-any.whl Python 3 none any Details for adafruit_circuitpython_si7021-4.1.3-py3-none-any.whl

Total release size: 38.6 kB

Release files / adafruit-circuitpython-si7021-4.1.3.tar.gz

Download URL adafruit-circuitpython-si7021-4.1.3.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b0c91b584d2dfa68c05fae93b9162404ee71375ecc561bc8c011e0d9748f220d
BLAKE2b-256 checksum
How to use checksums
cce6258e8f89e34810ecb9ad6d616510368bc1e6755f139769ca9e3c15a0b9c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / adafruit_circuitpython_si7021-4.1.3-py3-none-any.whl

Download URL adafruit_circuitpython_si7021-4.1.3-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
996934aa259b5e05855428ad7d01e1e962e8486a0944d6badab281898c85d446
BLAKE2b-256 checksum
How to use checksums
2576f770b33f9d3f0f5e38b5ed0ef8e5ec11372c3bf4dee461b043f793f1e4fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for adafruit-circuitpython-si7021 4.1.3

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

4.1.3 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