Skip to content

mariopesch/SDS011

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDS011

Arduino library for dust Sensor SDS011 (Nova Fitness Co.,Ltd)
This library uses SoftSerial to connect to the SDS011.

Usage

  • Define SDS object:
    SDS011(uint8_t pin_rx, uint8_t pin_tx);
    i.e. SDS011 mySDS(pinRX,pinTX);

  • Start object:
    void begin(void);
    i.e. mySDS.begin();

  • Read values:
    int read(float *p25, float *p10);
    i.e. error = mySDS(pm25,pm10);

Reads the PM2.5 and PM10 values, return code is 0, if new values were read, and 1 if there were no new values.

About

Arduino library for SDS011 dust sensor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 85.4%
  • Other 14.6%