Skip to main content

Driver for the Si7021 humidity and temperature sensor

Project description

Driver for the Si7021 humidity and temperature sensor.

Usage:

Dependencies

Installation

1. pip install from PyPi

pip install Si7021

2. pip install from git

pip install git+https://github.com/herm/Si7021

3. Clone the repository and run setup.py

git clone https://github.com/herm/Si7021
python setup.py install

Usage

If you have a sensor connected to I2C bus 1, you may run

>>> from si7021 import Si7021
>>> from time import sleep
>>> from smbus import SMBus
>>> sensor = Si7021(SMBus(1))
>>> print("%.1f %%RH, %.1f °C" % sensor.read())
>>> sensor.heater_mA = 50
>>> sleep(10)
>>> print("%.1f %%RH, %.1f °C" % sensor.read())
>>> sensor.heater_mA = 0

Bug Reporting

To submit a bugreport use the GitHub bugtracker for the project:

https://github.com/herm/Si7021/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Si7021-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Si7021-0.1.1-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Si7021-0.1.1.tar.gz.

File metadata

  • Download URL: Si7021-0.1.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Si7021-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c9fcc4a4a852321a6e2c2ecde051f3dc172a0acc3e7947e759bdcf6ac1f161fe
MD5 647f80647890cc0d809f5e28009344f9
BLAKE2b-256 88e9ded02a04e99b7d8c7c9adc7828f6c0e6538350f5d62a773a36315e411112

See more details on using hashes here.

File details

Details for the file Si7021-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Si7021-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 99922911c98a6e96db253f3a76dcdfedd4764331f7c88e85b69f652b7211845a
MD5 7e7870219d77e2718a224cb7a82bcc49
BLAKE2b-256 68045b613f05d2e4744de25efd454c0b1871ca06d73616a7070990006bdd3746

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page