Arduino - AirQuality BME680 (BSEC Lib)

Hi Folks,

I’ve got a very basic POC implementation of an Air Quality Monitor running on an arduino using the BME680 sensor (+ official BSEC library).

The code is very crude, but it’s functional (lots of hard coding). It’s pushing the values including IAQ to MQTT and from there I push in to influxdb and grafana.

I’m running it on a WIO Terminal board

I thought i’d share the very crude code if anyone was interested - it needs a lot of work so be warned! please share any updates

You’ll need the library from here:

2 Likes

Nice project and case! Do you have an issue with your arduino code (due to the MQTT library) in that does the code hang if the devices loses contact with the MQTT broker for an extended period? I'm in the middle of troubleshooting an arduino/mqtt project that I've built which works fine other than this issue (which is not uncommon)

Actually yes! I put it down to my poor code; runs for a couple of days and then bombs out - stops publishing...

The WIO Terminal is actually a really nice board

and not too expensive for what it is - around £30 on amazon.co.uk

Yes it's a known issue with pubsubclient. Hopefully I'll be able to get sorted soon.

1 Like

That looks pretty neat albeit a bit pricey for my projects which usually just rely on a nodemcu or wemos d1 mini.