obniz Parts Library

Keyestudio_TemperatureSensor

GitHub
Keyestudio_TemperatureSensor
Usable Devices :
obniz_board
Found at :

Temperature Sensor - LM35DZ

Keyestudio temperature sensor.

wired(obniz, {vcc, gnd, output})

name type required default description
signal number(obniz Board io) yes   Signal pin outputs value of sensor(s pin of Keyestudio)
vcc number(obniz Board io) no   VCC for sensor(+ pin of Keyestudio)
gnd number(obniz Board io) no   GND for sensor(- pin of Keyestudio)
// Javascript Example
var tempsens = obniz.wired("Keyestudio_TemperatureSensor", {signal:0, vcc:1, gnd:2});

onchange

callback function for temperature change.
Unit of temp is Celsius.

// Javascript Example
var tempsens = obniz.wired("Keyestudio_TemperatureSensor", {signal:0, vcc:1, gnd:2});
tempsens.onchange = function(temp){
console.log(temp);
};

[await]getWait

get temperature change.
Unit of temp is Celsius.

// Javascript Example
var tempsens = obniz.wired("Keyestudio_TemperatureSensor", {signal:0, vcc:1, gnd:2});
var temp = await tempsens.getWait();
console.log(temp);

Supported from: obnizOS 3.5.0

You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers

Forum

Visit our developer’s forum to discuss and discover technologies.

Forum

Contact

Feel free to contact out support and technical team.

Contact us