1.0.1 • Published 5 years ago
i2c-seesaw-moisture-sensor v1.0.1
i2c-seesaw-moisture-sensor
Library for reading Adafruit STEMMA i2c plant moisture sensor.
Usage
// import library
const sensor = require('i2c-seesaw-moisture-sensor')
//create the client, provide i2c address
let client = sensor.open(0x36)
//read temperature
client.getTemperature()
.then(console.log)
//read moisture
client.getMoisture()
.then(console.log)