Let's Code ESP8266 0x03: Temperature and Humidity sensor BME280
In this episode the BME280 humidity and temperature sensor gets added to the mix and we switch libraries around. I chose the Sparkfun libraries, because they work together quite well, are open source and support both the BME280 and the CCS811 CO2 sensor.
Source for this episode: https://gist.github.com/root42/72f7af928ee72c61ff047064b6d4db10
Sparkfun CCS811 library: https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library
Sparkfun BME280 library: https://github.com/sparkfun/SparkFun_BME280_Arduino_Library
DevDocs C documentation: https://devdocs.io/c/
When buying hardware, make sure to buy 3.3V versions, since the ESP talks 3V, or you will have to use level shifters. Sparkfun sells the necessary modules, but for about 20 USD each. From china you can also get clones for around 5 USD. Quality may vary, Sparkfun will supply of course reliable modules.
Sparkfun BME280 module: https://www.sparkfun.com/products/13676
Sparkfun CCS811 module: https://www.sparkfun.com/products/14193
China BME280 module: https://www.ebay.de/itm/BME280-I2C-SPI-Temperature-Humidity-Barometric-Breakout-Pressure-Digital-Sensor/401597914172?hash=item5d8119dc3c:m:mJACKrjiSKUUbC7R_Ktz5FA
Long Stroll von Kevin MacLeod ist unter der Lizenz "Creative Commons Attribution" (https://creativecommons.org/licenses/by/4.0/) lizenziert.
Quelle: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100174
Künstler: http://incompetech.com/