MLX90614 Infrared Temperature Sensor
npm install node-red-contrib-mlx-sensor
TODO Have not published package yet use alternative
$ npm install mlx90614-driver
`
$3
`
$ cd
$ git clone https://github.com/prosperv/mlx90614-driver.git
$ npm install
`
Note: If you are installing the node module locally, the repo needs to be inside due to how node.js looks for packages.#### Raspberry PI
Enable i2c on your Pi if you haven't done already. To avoid having to run the i2c tools as root add the ‘pi’ user to the i2c group:
`
sudo adduser pi i2c
`Usage
`
var MLX90614 = require('mlx90614-driver');var sensor = new MLX90614();
function getTemp() {
var temp = sensor.readObject();
console.log(temp);
}
window.setInterval(getTemp, 1000);
``