SI7021
Fritzing diagram: multi-SI7021.fzz
Run this example from the command line with:
node eg/hygrometer-SI7021.js
var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
var hygrometer = new five.Hygrometer({
controller: "SI7021"
});
hygrometer.on("data", function() {
console.log(this.relativeHumidity + " %");
});
});
Learn More