Skip to content

ncdcommunity/Raspberry_Pi_SHT31_Humidity_Temperature_Sensor_Python_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

 SHT31.

SHT31

SHT31 is the next generation of Sensirion’s temperature and humidity sensors. The SHT31 has increased intelligence, reliability and improved accuracy specifications compared to its predecessor. This Device is available from www.ncd.io

[SKU: SHT31]

(https://store.ncd.io/product/sht31-humidity-and-temperature-sensor-%C2%B12rh-%C2%B10-3c-i2c-mini-module/) This Sample code can be used with Raspberry Pi.

Hardware needed to interface SHT31 humidity and temperature sensor With Raspberry Pi :

  1. SHT31 humidity and temperature sensor
  2. Raspberry Pi I2C Shield
  3. I2C Cable

Python

Download and install smbus library on Raspberry pi. Steps to install smbus are provided at:

https://pypi.python.org/pypi/smbus-cffi/0.5.1

Download (or git pull) the code in pi. Run the program.

$> python SHT31.py

The lib is a sample library, you will need to calibrate the sensor according to your application requirement.

About

SHT31 Temperature And Humidity Sensor Interfacing With Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages