tempSensor.C

Category:Circuit

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,

Examples

Thermometer using Celsius

onBoardEvent(tempSensor, "data", function(event) {
  setNumber("temperature", tempSensor.C);
});

Found a bug in the documentation? Let us know at documentation@code.org