Skip to content

📈 Digital universal particle concentration sensor ⏲️

License

Notifications You must be signed in to change notification settings

lsongdev/dsensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dsensor dsensor

Digital universal particle concentration sensor

Installation

$ npm i [-g] dsensor

Example

const HCHO = require('dsensor/HCHO');

const sensor = new HCHO("/dev/cu.SLAB_USBtoUART");

sensor.on('message', message => {
  console.log(message.toString()); // outputs: "HCHO: 0.001Mg/m3"
});

sensor.on("open", () => {
  setInterval(() => {
    sensor.send('query');
  }, 3000);
});

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT


About

📈 Digital universal particle concentration sensor ⏲️

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published