A small testmodule, purely for educational purposes, for myself to be honest, kinda educating myself
npm install @welltemperedfate/temp_sens_module
var temperature = require('@welltemperedfate/temp_sens_module');
var display = temperature();
display.OpenPort();
display.getTempData();
console.log(display);
Output should be 24 or whatever the temperature sensor is reading
npm test
I made this for a small project for Vives hogeschool, so feel free to use, change,... the code.