Permalink
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (33 sloc) 1 KB

Hygrometer - SI7021

SI7021

docs/breadboard/multi-SI7021.png

Fritzing diagram: docs/breadboard/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

 

License

Copyright (c) 2012-2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2015-2018 The Johnny-Five Contributors Licensed under the MIT license.