i2c-seesaw-moisture-sensor
v1.0.1
Published
library for reading i2c plant moisture sensor
Downloads
2
Maintainers
Readme
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)