Nefarious Planetary Meddling

    aht20-sensor

    0.1.1 • Public • Published

    aht20-sensor

    A Node.js I2C module for the Adafruit AHT20 Humidity/Temperature Sensor.

    Installation

    npm install aht20-sensor
    

    Example

    const aht20 = require('aht20-sensor');
    
    aht20.open().then(async (sensor) => {
        const temp = await sensor.temperature();
        const hum = await sensor.humidity();
        console.log(temp, hum);
    });

    Install

    npm i aht20-sensor

    DownloadsWeekly Downloads

    5

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    5.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • thomome