# sht31-sensor

> A Node.js I2C module for the SHT31 Humidity and Temperature Sensor.

Latest version **0.0.3** (published 2021-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install sht31-sensor
pnpm add sht31-sensor
yarn add sht31-sensor
bun add sht31-sensor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-04-08 |
| First published | 2021-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Clemens Arth |
| Maintainers | belveder79 |
| Keywords | SHT31, Humidity, Temperature, Sensor, Adafruit, Raspberry, Pi, Beaglebone |

## Links

- npm: https://www.npmjs.com/package/sht31-sensor
- Repository: https://github.com/belveder79/sht31-sensor
- Homepage: https://github.com/belveder79/sht31-sensor#readme
- Issues: https://github.com/belveder79/sht31-sensor/issues
- npm.io page: https://npm.io/package/sht31-sensor

## Dependencies (1)

- [i2c-bus](https://npm.io/package/i2c-bus.md) ^5.1.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2021-04-08
- 0.0.1 — 2021-04-08

## README

# sht31-sensor

[<img src="https://cdn-shop.adafruit.com/970x728/2857-07.jpg" width="100" align="right">](https://www.adafruit.com/product/2857)

Welcome to sht31-sensor, a Node.js I2C module for the Sensirion SHT31 Humidity and Temperature Sensor. Adafruit sells a [SHT31 breakout board](https://www.adafruit.com/product/2652) and [here is the datasheet](http://adafruit.com/images/product-files/2857/Sensirion_Humidity_SHT3x_Datasheet_digital-767294.pdf).

This module uses [i2c-bus](https://github.com/fivdi/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](https://github.com/skylarstein/bme280-sensor) 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](https://www.ar4.io).

---
_Source: https://npm.io/package/sht31-sensor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
