Fetching contributors…
Cannot retrieve contributors at this time
69 lines (33 sloc) 1004 Bytes

Thermometer - LM35

Breadboard for "Thermometer - LM35"


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


Run this example from the command line with:

node eg/temperature-lm35.js
var five = require("johnny-five");

five.Board().on("ready", function() {
  var temperature = new five.Thermometer({
    controller: "LM35",
    pin: "A0"

  temperature.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.