0.0.5 • Published 3 years ago

am2320b v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

node-am2320

Module for reading the raw data from AM2320. Extended frah-am2320 and added a bulk read function.

Install

$ npm install am2320b

Usage

var AM2320 = require('am2320');

var sensor = new AM2320();
sensor.readTemperature()
  .then(function(temp) {
    console.log('Temperature: ' + temp + ' degree');
  });
sensor.readHumidity()
  .then(function(hum) {
    console.log('Humidity: ' + hum + ' %');
  });
sensor.readBulk()
  .then(function(result){
    console.log('Humidity: '+ result.hum + ' % Temperature:'+ result.temp); 
});
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago