Adafruit BMP280 Driver (Barometric Pressure Sensor) [](https://github.com/adafruit/AdafruitBMP280Library/actions)[](http://adafruit.github.io/AdafruitBMP280Library/html/index.html)

December 10, 2025 ยท View on GitHub

This driver is for the Adafruit BMP280 Breakout

About the BMP280

This precision sensor from Bosch is the best low-cost sensing solution for measuring barometric pressure and temperature. Because pressure changes with altitude you can also use it as an altimeter!

About this Driver

Adafruit invests time and resources providing this open source code. Please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Kevin (KTOWN) Townsend for Adafruit Industries.

Compatibility

MCUTested WorksDoesn't WorkNot TestedNotes
Atmega328 @ 16MHzX
Atmega328 @ 12MHzX
Atmega32u4 @ 16MHzXUse SDA/SCL on pins D2 & D3
Atmega32u4 @ 8MHzXUse SDA/SCL on pins D2 & D3
ESP8266XSDA/SCL default to pins 4 & 5 but any two pins can be assigned as SDA/SCL using Wire.begin(SDA,SCL)
Atmega2560 @ 16MHzXUse SDA/SCL on pins 20 & 21
ATSAM3X8EXUse SDA/SCL on pins 20 & 21
ATSAM21DX
ATtiny85 @ 16MHzX
ATtiny85 @ 8MHzX
Intel Curie @ 32MHzX
STM32F2X
  • ATmega328 @ 16MHz : Arduino UNO, Adafruit Pro Trinket 5V, Adafruit Metro 328, Adafruit Metro Mini
  • ATmega328 @ 12MHz : Adafruit Pro Trinket 3V
  • ATmega32u4 @ 16MHz : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0
  • ATmega32u4 @ 8MHz : Adafruit Flora, Bluefruit Micro
  • ESP8266 : Adafruit Huzzah
  • ATmega2560 @ 16MHz : Arduino Mega
  • ATSAM3X8E : Arduino Due
  • ATSAM21D : Arduino Zero, M0 Pro
  • ATtiny85 @ 16MHz : Adafruit Trinket 5V
  • ATtiny85 @ 8MHz : Adafruit Gemma, Arduino Gemma, Adafruit Trinket 3V