Nevermind, I've found the working one.
To test everything I've tried to read from a DS18B20 sensor but getTemp() method always return null so I have to manually assign sCode expando to get it work properly:
var ow = new OneWire(B1);
var sensor = require("DS18B20").connect(ow);
sensor.sCode = sensor.bus.search()[0];
sensor.getTemp();
=24.5625
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Nevermind, I've found the working one.
To test everything I've tried to read from a DS18B20 sensor but getTemp() method always return null so I have to manually assign sCode expando to get it work properly: