Home Page Forums Tinylab Temperature Sensor reading too high Reply To: Temperature Sensor reading too high

#1248

KatieK
Participant

var five = require(“johnny-five”);
var board = new five.Board();

// !! Seems to read too high a temp.

board.on(“ready”, function(){

// Create an analog Thermometer object:
var temp = new five.Thermometer({
pin: “A3”,
freq: 1000
});

temp.on(“data”, function() {
console.log(“celsius: %d”, this.C);
console.log(“fahrenheit: %d”, this.F);
console.log(“kelvin: %d”, this.K);
});

});