sht31-sensor

0.0.3 • Public • Published

sht31-sensor

Welcome to sht31-sensor, a Node.js I2C module for the Sensirion SHT31 Humidity and Temperature Sensor. Adafruit sells a SHT31 breakout board and here is the datasheet.

This module uses i2c-bus which should provide access with Node.js on Linux boards like the Raspberry Pi Zero, 1, 2, or 3, BeagleBone, BeagleBone Black, or Intel Edison.

Since sht31-sensor needs to talk directly to the I2C bus and requires access to /dev/i2c, you will typically need run Node with elevated privileges or add your user account to the i2c group: $ sudo adduser $USER i2c

Disclaimer

A lot of code snippets, inspiration and even this README was largely taken from the BME280 implementation from Skylar Stein (actually almost everything). It is recommended to mostly follow the instructions on this site to also get the SHT31 to work on whatever breakout board available. The code was only tested on a custom board implementation available from AR4 GmbH.

Package Sidebar

Install

npm i sht31-sensor

Weekly Downloads

75

Version

0.0.3

License

MIT

Unpacked Size

7.94 kB

Total Files

6

Last publish

Collaborators

  • belveder79