Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 392 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 392 Bytes

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