With the most recent Particle system most libraries that don’t use µC specific code will usually just build out the box.
To “import” the lib for a first stab, hit the (+) icon top right corner of the Web IDE window. This will provide you with two new file tabs, rename them as needed and copy/paste the original code into the .h and .cpp file respectively.
Thanks, very helpful! Yes that worked smoothly. However, the Arduino code make a reference to SoftwareSerial.h which Particle could not find. Has Particle something comparable that I could use?
Hi!
Apologies for the slow turn around, this project has been a bit on the back-burner.
I ended up connecting the Honeywell sensor to an adafruit feather, not a particle chip. And it worked. The sensor is very sensible though, so when presenting the results it will probably be useful to make some kind of averaging the readings over a period.
I am currently exploring connecting an air quality sensor from Omron to a photon and might return with some questions about that later. It will be interesting see whether the Omron and the Honeywell sensors are giving different results, as the latter has an internal fan (and costs twice as much).