ricki-z / SDS011

Arduino library for SDS011 dust sensor
GNU General Public License v3.0
81 stars 53 forks source link

Compatibility with esp32 #16

Open DavidAriza opened 6 years ago

DavidAriza commented 6 years ago

Hey, i want to know if this library is compatible with ESP32

Frickelpiet commented 6 years ago

I managed it by commenting out the software serial stuff.

ricki-z commented 6 years ago

The lib should work even without commenting out the software serial stuff (but SoftwareSerial needs to be available/installed). Try the SDS011_HardwareSerial example. There you can define one of 3 possible HardwareSerials and use this for the SDS011.