Awesome Open Source
Awesome Open Source

License: GPL v3 Build Format Wiki Doxygen arduino-library-badge

BME280 library

Arduino library for using the Bosch BME280 sensor which senses temperature, humidity and pressure. Since the package is quite small and difficult to breadboard with, the Adafruit BME280 Breakout board was used for development.

A complete description of the BME280 sensor can be found in the BME280 Datasheet while the Adafruit BME280 tutorial describes additional board information.


The BME280 allows the user to individually adjust the sampling rates for each component sensing (temperature, humidity and pressure) as well as to set the inter-measurement delay time and the IIR filter sampling coeffient. Combining these settings allows very fine-grained control of measurement times vs. measurement accuracy.

Temperature sensing

The BME280 measures temperatures between -40C and 85C with a full accuracy range between 0C and +65C. The accuracy is 0.5c with a full resolution of 0.01C. Since the temperature sensor in the small package is tied to the PCB board on which it is soldered placed and has some self-heating as well the temperature reading will usually be above ambient.

Humidity sensing

Non-condensing humidity between 0% and 100% is measured with an accuracy of 3% at a maximum resolution of 0.008%.

Pressure sensing

The pressure sensor works in temperatures between -40C and +85C although the zone of full accuracy only goes from 0C to +65C. Pressure is measured between 300hPa and 1100hPa with an accuracy of 1.0 hPa and a resolution of 0.2Pa

A detailed library description and further details are available at the GitHub BME280 Wiki

Zanshin Logo

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
C Plus Plus (246,425
Arduino (30,928
Sensor (15,789
Temperature (7,401
Measurements (4,356
Accuracy (4,066
I2c (3,976
Arduino Library (2,380
Adafruit (250
Temperature Sensor (223
Humidity (192
Bme280 (143
Breakout (98
Humidity Sensor (98
Pressure (93
Bosch (65
Pressure Sensor (49
Spi Interface (12