npm.io
1.0.3 • Published 4 years ago

sht4x

Licence
BSD-2-Clause
Version
1.0.3
Deps
3
Size
6 kB
Vulns
0
Weekly
0

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();

Keywords