LMT87 Temp sensor not giving negative value
Sorry this will be in English only (or French if you prefer) .
I have an issue with temperature reading, the LMT87 temp sensor will always stop at 0C. I know that the temperature is below zero and I should read negative value (ex. -5C) but the reading stops at 0C. Could it be that the Javascript was written for reading above zero temp only?
Thank you for your help
Here is the code I use:
// var tempsens = obniz.wired("LMT87", { gnd:7, output:8, vcc:9});
var tempsens = obniz.wired("LMT87", {signal:7, vcc:8, gnd:9});
tempsens.onchange = function(temp){
$("#temp").text('' + parseInt(temp)+ ' °C')
obniz.display.clear();
obniz.display.font('Avenir', 60)
obniz.display.print('' + parseInt(temp) + '℃')
};
0
サインインしてコメントを残してください。
コメント
0件のコメント