Converts tempSensor.value to an easy to read temperature in Celsius
tempSensor.C
is a property of the tempSensor analog object. tempSensor.C
converts the raw value to Celsius,
onBoardEvent(tempSensor, "data", function(event) { setNumber("temperature", tempSensor.C); });
Found a bug in the documentation? Let us know at documentation@code.org