Temperature - DS18B20
Breadboard for "Temperature - DS18B20"

Fritzing diagram: docs/breadboard/temperature-ds18b20.fzz
Run with:
node eg/temperature-ds18b20.js
var five = require("johnny-five");
five.Board().on("ready", function() {
// This requires OneWire support using the ConfigurableFirmata
var temperature = new five.Temperature({
controller: "DS18B20",
pin: 2
});
temperature.on("data", function(err, data) {
console.log(data.celsius + "°C", data.fahrenheit + "°F");
console.log("0x" + this.address.toString(16));
});
});
Additional Notes
License
Copyright (c) 2012, 2013, 2014 Rick Waldron waldron.rick@gmail.com Licensed under the MIT license. Copyright (c) 2014, 2015 The Johnny-Five Contributors Licensed under the MIT license.