1.0.3 • Published 2 years ago

sht4x v1.0.3

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
2 years ago

SHT4X Temperature Sensor

Reads humidity and temperature from the SHT40, SHT41, and SHT45 sensor via I2C.

Installation

npm install sht4x

Example

const SHT4X = require('../SHT4X.js');

const main = async () => {
    const thermostat = await SHT4X.open();
    console.log(await thermostat.serialNumber());
    console.log(await thermostat.measurements());
}

main();