(Hit s to see summary of talk)
"During 2008, the number of things connected to the Internet exceeded the number of people one earth.
By 2020 there will be 50 billion."
var five = require("johnny-five");
var last_temp = 0;
five.Board().on("ready", function(){
// read temperature every 3 seconds
var temp = new five.Sensor({
pin:"A0",
freq:3000
});
temp.on("read", function(err, value){
var cel =
(100*(value/1000)-50).toFixed(2);
// update dashboard
send_event('temp', {
last:last_temp,
current:cel
});
last_temp = cel;
});
});