GitPedia

SparkFun BME280 Arduino Library

An Arduino library to control the BME280 humidity and pressure sensor.

From sparkfun·Updated February 16, 2026·View on GitHub·

SparkFun BME280 Arduino Library ======================================== The project is written primarily in C++, distributed under the Other license, first published in 2015. Key topics include: altitude, arduino-library, humidity-sensor, pressure-sensor.

Latest release: v2.0.11Minor bug fixes
October 6, 2025View Changelog →

SparkFun BME280 Arduino Library

SparkFun BME280 Breakout

SparkFun CCS811/BME280 Combo (SEN-14348)

This library allows the user to:

  • Read pressure in Pa
  • Read temperature in C
  • Read humidity in %RH

It also provides the following mathematical functions based from the above.

  • Read temperature in F
  • Read altitude in meters
  • Read altitude in feet

Some examples include a circular buffer class for averaging.

Thanks to:

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /extras - Additional documentation for the user. These files are ignored by the IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Documentation

Products that use this Library

Version History

  • V_1.0.0 - Public release.
  • V_1.1.0 - Pulled request to add decimal precision to readFloatPressure() and readFloatHumidity().
  • V_1.2.0 - Added ESP32 architecture directives to modify begin operation.
  • V_2.0.0 - Major update. Generalized wire port. Functionalized oversampling, standby time, etc. Added setMode.

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact techsupport@sparkfun.com.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from sparkfun/SparkFun_BME280_Arduino_Library via the GitHub API.Last fetched: 6/28/2026