Fetching contributors…
Cannot retrieve contributors at this time
70 lines (34 sloc) 1.01 KB

Thermometer - LM335

Breadboard for "Thermometer - LM335"


Fritzing diagram: docs/breadboard/temperature-lm335.fzz


Run this example from the command line with:

node eg/temperature-lm335.js
var five = require("johnny-five");
var board = new five.Board();

board.on("ready", function() {
  var thermometer = new five.Thermometer({
    controller: "LM335",
    pin: "A0"

  thermometer.on("change", function() {
    console.log(this.celsius + "°C", this.fahrenheit + "°F");

Additional Notes



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