Skip to content

It is OpenSource driver for popular sensor series SHT3x for Linux and Raspberry Pi, written on Python

License

Notifications You must be signed in to change notification settings

MisteryX/SHT3x-linux-python-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SHT30 Linux Python driver for Raspberry PI

It was tested on Raspberry Pi4 only. If you have i2c issues on Raspberry, please make i2c baud rate slower, it helps. Original driver based on micropython-sht30, but significantly rewritten and ported for Raspberry.

References:

Examples of use:

Basic usage:

import sys
import SHT30 as driver

sensor = driver.SHT30()
if not sensor.is_plugged():
    print("SHT30 is not plugged!")
    sys.exit(1)
temperature, humidity = sensor.measure()
print('Temperature:', temperature, 'ºC, RH:', humidity, '%')
print(sensor.status())

Full hands-on example in file utils/measure.py

About

It is OpenSource driver for popular sensor series SHT3x for Linux and Raspberry Pi, written on Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages