# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/093/019/medium800/adafruit_products_BMP280_top_angle.jpg?1594316875)

Bosch has stepped up their game with their new BMP280 sensor, an environmental sensor with temperature, barometric pressure that is the next generation upgrade to the BMP085/BMP180/BMP183. This sensor is great for all sorts of weather sensing and can even be used in both I2C and SPI!

This precision sensor from Bosch is the best low-cost, precision sensing solution for measuring barometric pressure with ±1 hPa absolute accuracy, and temperature with ±1.0°C accuracy. Because pressure changes with altitude, and the pressure measurements are so good, you can also use it as an altimeter with ±1 meter accuracy.

![](https://cdn-learn.adafruit.com/assets/assets/000/093/021/medium800/adafruit_products_BMP280_top_header.jpg?1594316946)

The BMP280 is the next-generation of sensors from Bosch, and is the upgrade to the BMP085/BMP180/BMP183 - with a low altitude noise of 0.25m and the same fast conversion time. It has the same specifications, but can use either I2C or SPI. For simple easy wiring, go with I2C. If you want to connect a bunch of sensors without worrying about I2C address collisions, go with SPI.

![](https://cdn-learn.adafruit.com/assets/assets/000/093/020/medium800/adafruit_products_BMP280_STEMMA_side.jpg?1594316936)

Nice sensor right? So we made it easy for you to get right into your next project. The surface-mount sensor is soldered onto a custom made PCB in the[&nbsp; **STEMMA QT** &nbsp;form factor](https://www.adafruit.com/?q=stemma%20qt%20sensor "STEMMA QT form factor"), making them easy to interface with. The&nbsp;[STEMMA QT connectors](https://learn.adafruit.com/introducing-adafruit-stemma-qt/what-is-stemma-qt)&nbsp;on either side are compatible with the&nbsp;[SparkFun Qwiic](https://www.sparkfun.com/qwiic)&nbsp;I2C connectors. This allows you to make solderless connections between your development board and the BMP280 or to chain it with a wide range of other sensors and accessories using a&nbsp;[**compatible cable**](https://www.adafruit.com/?q=stemma%20qt%20cable). We’ve of course broken out all the pins to standard headers and added a voltage regulator and level shifting so allow you to use it with either 3.3V or 5V systems such as the Metro M4 or Arduino Uno respectively.

We even wrote up a nice tutorial with wiring diagrams, schematics, libraries and examples to get you running in 10 minutes! [Make sure to check the tutorial for example code for Arduino and CircuitPython, pinouts, assembly, wiring, downloads, and more!](https://learn.adafruit.com/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout/overview)

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/093/076/medium800/adafruit_products_BMP280_original_version.jpg?1594651549)

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/093/022/medium800/adafruit_products_BMP280_top_pinouts.jpg?1594317026)

![](https://cdn-learn.adafruit.com/assets/assets/000/026/854/medium800/sensors_pinout.jpg?1438369451)

## Power Pins:

- **Vin** - this is the power pin. Since the sensor chip uses 3 VDC, we have included a voltage regulator on board that will take 3-5VDC and safely convert it down. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V
- **3Vo** - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like
- **GND** - common ground for power and logic

# SPI Logic pins:

All pins going into the breakout have level shifting circuitry to make them 3-5V logic level safe. Use whatever logic level is on **Vin!**

- **SCK** - This is the **S** PI **C** loc **k** pin, its an input to the chip
- **SDO** - this is the **S** erial **D** ata **O** ut / **M** icrocontroller **I** n **S** ensor **O** ut pin, for data sent from the&nbsp;BMP280 to your processor
- **SDI** - this is the **S** erial **D** ata **I** n / **M** icrocontroller **O** ut **S** ensor **I** n&nbsp;pin, for data sent from your processor to the BMP280
- **CS** - this is the **C** hip **S** elect pin, drop it low to start an SPI transaction. Its an input to the chip

If you want to connect multiple BMP280's to one microcontroller, have them share the SDI, SDO and SCK pins. Then assign each one a unique CS pin.

## I2C Logic pins:

- **SCK** - this is _also_ the I2C clock pin **(SCL)**, connect to your microcontroller's I2C clock line.
- **SDI** - this is _also_ the I2C data pin **(SDA),** connect to your microcontroller's I2C data line.

Leave the other pins disconnected

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/026/855/medium800/sensors_2651_kit_ORIG.jpg?1438369482)

Warning: 

## Prepare the header strip:

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - **long pins down**

![sensors_header.jpg](https://cdn-learn.adafruit.com/assets/assets/000/026/856/medium640/sensors_header.jpg?1438369494)

## Add the breakout board:

Place the breakout board over the pins so that the short pins poke through the breakout pads

![sensors_place.jpg](https://cdn-learn.adafruit.com/assets/assets/000/026/857/medium640/sensors_place.jpg?1438369505)

## And Solder!

Be sure to solder all pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our_ [_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![sensors_solder1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/026/858/medium640/sensors_solder1.jpg?1438369517)

![sensors_solder2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/026/859/medium640/sensors_solder2.jpg?1438369523)

You're done! Check your solder joints visually and continue onto the next steps

![sensors_done.jpg](https://cdn-learn.adafruit.com/assets/assets/000/026/860/medium640/sensors_done.jpg?1438369535)

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Arduino Test

You can easily wire this breakout to any microcontroller, we'll be using an Arduino. For another kind of microcontroller, as long as you have 4 available pins it is possible to 'bit-bang SPI' or you can use two I2C pins, but usually those pins are fixed in hardware. Just check out the library, then port the code.

# I2C Wiring

Use this wiring if you want to connect via I2C interface

- Connect **Vin (red wire on STEMMA version)** to the power supply, 3-5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduinos, that is 5V 
- Connect **GND (black wire on STEMMA version)** to common power/data ground 
- Connect the **SCK (yellow wire on STEMMA version)** pin to the I2C clock **SCL** pin on your Arduino. On an UNO & '328 based Arduino, this is also known as **A5** , on a Mega it is also known as **digital 21** and on a Leonardo/Micro, **digital 3**  
- Connect the **SDI (blue wire on STEMMA version)** pin to the I2C data **SDA** pin on your Arduino. On an UNO & '328 based Arduino, this is also known as **A4** , on a Mega it is also known as **digital 20** and on a Leonardo/Micro, **digital 2**  

![adafruit_products_sensors_2651_02.jpg](https://cdn-learn.adafruit.com/assets/assets/000/053/442/medium640/adafruit_products_sensors_2651_02.jpg?1525493439)

![adafruit_products_BMP280_Arduino_I2C_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/035/medium640/adafruit_products_BMP280_Arduino_I2C_bb.jpg?1594324102)

![adafruit_products_BMP280_Arduino_I2C_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/036/medium640/adafruit_products_BMP280_Arduino_I2C_STEMMA_bb.jpg?1594324123)

# SPI Wiring

Since this is a SPI-capable sensor, we can use hardware or 'software' SPI. To make wiring identical on all Arduinos, we'll begin with 'software' SPI. The following pins should be used:

- Connect **Vin** to the power supply, 3V or 5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduinos, that is 5V
- Connect **GND** to common power/data ground
- Connect the **SCK** pin to **Digital #13** but any pin can be used later
- Connect the **SDO** pin to **Digital #12** but any pin can be used later
- Connect the **SDI** pin to **Digital #11** but any pin can be used later
- Connect the **CS** pin **Digital #10** but any pin can be used later

![adafruit_products_sensors_2651.jpg](https://cdn-learn.adafruit.com/assets/assets/000/053/438/medium640/adafruit_products_sensors_2651.jpg?1525493361)

![adafruit_products_BMP280_Arduino_SPI_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/038/medium640/adafruit_products_BMP280_Arduino_SPI_bb.jpg?1594324356)

Later on, once we get it working, we can adjust the library to use hardware SPI if you desire, or change the pins to other

# Download Adafruit\_BMP280 library

To begin reading sensor data, you will need to [install the Adafruit\_BMP280 library (code on our github repository)](https://github.com/adafruit/Adafruit_BMP280_Library "Link: https://github.com/adafruit/Adafruit\_BMP280\_Library"). It is available from the Arduino library manager so we recommend using that.

From the IDE open up the library manager...

![](https://cdn-learn.adafruit.com/assets/assets/000/053/444/medium800/adafruit_products_managelib.png?1525493514)

And type in **adafruit bmp280** to locate the library. Click **Install**

![](https://cdn-learn.adafruit.com/assets/assets/000/053/445/medium800/adafruit_products_bmp280.png?1525493605)

You'll also need to install the **Adafruit Unified Sensor** library

![](https://cdn-learn.adafruit.com/assets/assets/000/053/443/medium800/adafruit_products_adafruitsensor.png?1525493504)

We also have a great tutorial on Arduino library installation at:  
[http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use](http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use "Link: http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use")

# Load Demo

Open up **File-\>Examples-\>Adafruit\_BMP280**** -\>bmp280test** and upload to your Arduino wired up to the sensor

![](https://cdn-learn.adafruit.com/assets/assets/000/026/863/medium800/sensors_bmptest.png?1438370583)

Depending on whether you are using I2C or SPI, change the pin names and comment or uncomment the following lines.

```
#define BMP_SCK 13
#define BMP_MISO 12
#define BMP_MOSI 11 
#define BMP_CS 10

Adafruit_BMP280 bmp; // I2C
//Adafruit_BMP280 bmp(BMP_CS); // hardware SPI
//Adafruit_BMP280 bmp(BMP_CS, BMP_MOSI, BMP_MISO,  BMP_SCK);
```

Once uploaded to your Arduino, open up the serial console at 9600 baud speed to see data being printed out

![](https://cdn-learn.adafruit.com/assets/assets/000/026/864/medium800/sensors_test.png?1438370692)

 **Temperature** is calculated in degrees C, you can convert this to F by using the classic F = C \* 9/5 + 32 equation.  
  
**Pressure** is returned in the SI units of **Pascals**. 100 Pascals = 1 hPa = 1 millibar. Often times barometric pressure is reported in millibar or inches-mercury. For future reference 1 pascal =0.000295333727 inches of mercury, or 1 inch Hg = 3386.39 Pascal. So if you take the pascal value of say 100734 and divide by 3389.39 you'll get 29.72 inches-Hg.  
  
You can also calculate Altitude. **However, you can only really do a good accurate job of calculating altitude if you know the hPa pressure at sea level for your location and day!** The sensor is quite precise but if you do not have the data updated for the current day then it can be difficult to get more accurate than 10 meters.

# Library Reference

You can start out by creating a BMP280 object with either software SPI (where all four pins can be any I/O) using

```
Adafruit_BMP280 bmp(BMP_CS, BMP_MOSI, BMP_MISO,  BMP_SCK);
```

Or you can use hardware SPI. With hardware SPI you _must_ use the hardware SPI pins for your Arduino - and each arduino type has different pins! [Check the SPI reference to see what pins to use.](http://arduino.cc/en/Reference/SPI)  
In this case, you can use any CS pin, but the other three pins are fixed

```
Adafruit_BMP280 bmp(BMP_CS); // hardware SPI
```

or I2C using the default I2C bus, no pins are assigned

```
Adafruit_BMP280 bmp; // I2C
```

Once started, you can initialize the sensor with

```
  if (!bmp.begin()) {  
    Serial.println("Could not find a valid BMP280 sensor, check wiring!");
    while (1);
  }
```

**begin()** will return True if the sensor was found, and False if not. If you get a False value back, check your wiring!

Reading temperature and pressure is easy, just call:

```
bmp.readTemperature()
bmp.readPressure()
```

Temperature is always a floating point, in Centigrade. Pressure is a 32 bit integer with the pressure in Pascals. You may need to convert to a different value to match it with your weather report.

It's also possible to turn the BMP280 into an altimeter. If you know the pressure at sea level, the library can calculate the current barometric pressure into altitude

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Python & CircuitPython Test

It's easy to use the BMP280 sensor with CircuitPython and the&nbsp;[Adafruit CircuitPython BMP280](https://github.com/adafruit/Adafruit_CircuitPython_BMP280)&nbsp;module.&nbsp; This module allows you to easily write Python code that reads the temperature and pressure from the sensor.

You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python&nbsp;[thanks to Adafruit\_Blinka, our CircuitPython-for-Python compatibility library](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

# CircuitPython Microcontroller Wiring
First wire up a BMP280 to your board exactly as shown on the previous pages for Arduino.&nbsp; You can use either I2C or SPI wiring, although it's recommended to use I2C for simplicity.&nbsp; Here's an example of wiring a Feather to the sensor with I2C:

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA version)**  
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA version)**  
- **Board SCL** &nbsp;to&nbsp;**sensor SCK (yellow wire on STEMMA version)**  
- **Board SDA** &nbsp;to&nbsp;**sensor SDI (blue wire on STEMMA version)**  

![adafruit_products_m0_bmp280_i2c_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/058/628/medium640/adafruit_products_m0_bmp280_i2c_bb.png?1533328312)

![adafruit_products_BMP280_FeatherM4_I2C_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/027/medium640/adafruit_products_BMP280_FeatherM4_I2C_bb.jpg?1594323249)

![adafruit_products_BMP280_FeatherM4_I2C_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/029/medium640/adafruit_products_BMP280_FeatherM4_I2C_STEMMA_bb.jpg?1594323348)

And an example of a Feather M0 wired with hardware SPI:

- **Board 3V** &nbsp;to&nbsp; **sensor VIN**
- **Board GND** &nbsp;to&nbsp; **sensor GND**
- **Board SCK** &nbsp;to&nbsp; **sensor SCK**
- **Board&nbsp;MOSI&nbsp;** to&nbsp; **sensor SDI**
- **Board MISO** &nbsp;to&nbsp; **sensor SDO**
- **Board D5** &nbsp;to&nbsp; **sensor CS** &nbsp;(or use any other free digital I/O pin)

![adafruit_products_m0_bmp280_spi_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/058/629/medium640/adafruit_products_m0_bmp280_spi_bb.png?1533328362)

![adafruit_products_BMP280_FeatherM4_SPI_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/030/medium640/adafruit_products_BMP280_FeatherM4_SPI_bb.jpg?1594323393)

# Python Computer Wiring
Since there's&nbsp;_dozens_&nbsp;of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms,&nbsp;[please visit the guide for CircuitPython on Linux to see whether your platform is supported](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).&nbsp;

Here's the Raspberry Pi wired with I2C:

- **Pi 3V3** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA version)**  
- **Pi GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA version)**  
- **Pi SCL** &nbsp;to&nbsp;**sensor SCK (yellow wire on STEMMA version)**  
- **Pi SDA** &nbsp;to&nbsp;**sensor SDI (blue wire on STEMMA version)**  

![adafruit_products_raspi_bmp280_i2c_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/058/619/medium640/adafruit_products_raspi_bmp280_i2c_bb.png?1533324749)

![adafruit_products_BMP280_RasPi_I2C_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/031/medium640/adafruit_products_BMP280_RasPi_I2C_bb.jpg?1594323468)

![adafruit_products_BMP280_RasPi_I2C_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/032/medium640/adafruit_products_BMP280_RasPi_I2C_STEMMA_bb.jpg?1594323493)

And an example on the Raspberry Pi 3 Model B wired with SPI:

- **Pi 3V3** &nbsp;to&nbsp; **sensor VIN**
- **Pi GND** &nbsp;to&nbsp; **sensor GND**
- **Pi MOSI&nbsp;** to&nbsp; **sensor SDI**
- **Pi MISO** &nbsp;to&nbsp; **sensor SDO**
- **Pi SCLK** &nbsp;to&nbsp; **sensor SCK**
- **Pi #5** &nbsp;to&nbsp; **sensor CS** &nbsp;(or use any other free GPIO pin)

![adafruit_products_raspi_bme280_spi_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/058/620/medium640/adafruit_products_raspi_bme280_spi_bb.png?1533324816)

![adafruit_products_BMP280_RasPi_SPI_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/034/medium640/adafruit_products_BMP280_RasPi_SPI_bb.jpg?1594323874)

# CircuitPython Installation of BMP280 Library
You'll need to install the&nbsp;[Adafruit CircuitPython BMP280](https://github.com/adafruit/Adafruit_CircuitPython_BMP280)&nbsp;library on your CircuitPython board.

First make sure you are running the&nbsp;[latest version of Adafruit CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython)&nbsp;for your board.

Next you'll need to install the necessary libraries&nbsp;to use the hardware--carefully follow the steps to find and install these libraries from&nbsp;[Adafruit's CircuitPython library bundle](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases).&nbsp; Our CircuitPython starter guide has [a great page on how to install the library bundle](https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries).

For non-express boards like the Trinket M0 or Gemma M0, you'll need to manually install the necessary libraries from the bundle:

- **adafruit\_bmp280.mpy**
- **adafruit\_bus\_device**

Before continuing make sure your board's lib folder or root filesystem has the&nbsp; **adafruit\_bmp280.mpy,** and **adafruit\_bus\_device**** &nbsp; **files and folders** &nbsp;**copied over.

Next&nbsp;[connect to the board's serial REPL&nbsp;](https://learn.adafruit.com/welcome-to-circuitpython/the-repl)so you are at the CircuitPython&nbsp; **\>\>\>** &nbsp;prompt.

# Python Installation of BMP280 Library
You'll need to install the Adafruit\_Blinka library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3.&nbsp;[Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

- `sudo pip3 install adafruit-circuitpython-bmp280`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

# CircuitPython & Python Usage

To demonstrate the usage of the sensor we'll initialize it and read the temperature, humidity, and more from the board's Python REPL.

If you're using an I2C connection run the following code to import the necessary modules and initialize the I2C connection with the sensor:

```python
import board
import adafruit_bmp280
i2c = board.I2C()
sensor = adafruit_bmp280.Adafruit_BMP280_I2C(i2c)
```

Or if you're using a SPI connection run this code instead to setup the SPI connection and sensor:

```python
import board
import digitalio
import adafruit_bmp280
spi = board.SPI()
cs = digitalio.DigitalInOut(board.D5)
sensor = adafruit_bmp280.Adafruit_BMP280_SPI(spi, cs)
```

Now you're ready to read values from the sensor using any of these properties:

- **temperature** &nbsp;- The sensor temperature in degrees Celsius.
- **pressure** &nbsp;- The pressure in hPa.
- **altitude** &nbsp;- The altitude in meters.

For example to print temperature and pressure:

```
print('Temperature: {} degrees C'.format(sensor.temperature)) 
print('Pressure: {}hPa'.format(sensor.pressure))
```

![](https://cdn-learn.adafruit.com/assets/assets/000/048/109/medium800/adafruit_products_Screen_Shot_2017-11-10_at_3.33.47_PM.png?1510356841)

For altitude you'll want to set the pressure at sea level for your location to get the most accurate measure (remember these sensors can only infer altitude based on pressure and need a set calibration point).&nbsp; Look at your local weather report for a pressure at sea level reading and set the&nbsp; **seaLevelhPA** &nbsp;property:

```
sensor.sea_level_pressure = 1013.25
```

Then read the altitude property for a more accurate altitude reading (but remember this altitude will fluctuate based on atmospheric pressure changes!):

```
print('Altitude: {} meters'.format(sensor.altitude))
```

![](https://cdn-learn.adafruit.com/assets/assets/000/049/064/medium800/adafruit_products_alti.png?1512842866)

That's all there is to using the BMP280 sensor with CircuitPython!

Here's a starting example that will print out the temperature, pressure and altitude every 2 seconds:

https://github.com/adafruit/Adafruit_CircuitPython_BMP280/blob/main/examples/bmp280_simpletest.py

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Python Docs

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## WipperSnapper

![](https://cdn-learn.adafruit.com/assets/assets/000/123/749/medium800/adafruit_products_Screenshot_2023-08-15_163525.png?1692724489)

## What is WipperSnapper

WipperSnapper is a firmware designed to turn any WiFi-capable board into an Internet-of-Things device without programming a single line of code. WipperSnapper connects to [Adafruit IO](https://io.adafruit.com/), a web&nbsp;platform designed ([by Adafruit!](https://www.adafruit.com/about)) to&nbsp;_display_,&nbsp;_respond_, and&nbsp;_interact_&nbsp;with your project's data.

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware, so you can&nbsp;immediately start interacting, logging, and streaming the data your projects produce without writing code.

If you've never used WipperSnapper, click below to read through the quick start guide before continuing.

[Quickstart: Adafruit IO WipperSnapper](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)
## Wiring
First, wire up a BMP280 to your board exactly as follows. Here is an example of the BMP280 wired to an&nbsp;[Adafruit ESP32 Feather V2](https://www.adafruit.com/product/5400)&nbsp;using I2C&nbsp;[with a STEMMA QT cable (no soldering required)](https://www.adafruit.com/product/4210)

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA QT)**  
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA QT)**  
- **Board SCL** &nbsp;to&nbsp;**sensor SCK (yellow wire on STEMMA QT)**  
- **Board SDA** &nbsp;to&nbsp;**sensor SDI (blue wire on STEMMA QT)**

![Circuit showing BMP280 joined to Feather with Stemma QT / Qwiic / JST-SH 4-pin cable.](https://cdn-learn.adafruit.com/assets/assets/000/123/752/medium640/adafruit_products_BMP280_bb.png?1692801436)

![Breadboard showing BMP280 joined to Feather with the wiring as described](https://cdn-learn.adafruit.com/assets/assets/000/123/942/medium640/adafruit_products_BMP280_Breadboard_bb.png?1692971539)

## Usage

Connect your board to Adafruit IO Wippersnapper and **[navigate to the WipperSnapper board list](https://io.adafruit.com/wippersnapper).**

On this page, **select the WipperSnapper board you're using** to be brought to the board's interface page.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/244/medium800/adafruit_products_02_DeviceSelection_croppped.png?1709159800)

If you do not see your board listed here - you need [to connect your board to Adafruit IO](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper) first.

On the device page, quickly&nbsp; **check that you're running the latest version of the WipperSnapper firmware**.

The device tile on the left indicates the version number of the firmware running on the connected board.

- **If the firmware version is green with a checkmark -** &nbsp;continue with this guide.
- **If the firmware version is red with an exclamation mark "!" -** &nbsp;[update to the latest WipperSnapper firmware](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)&nbsp;on your board before continuing.

![adafruit_products_CroppedVersion.png](https://cdn-learn.adafruit.com/assets/assets/000/123/759/medium640/adafruit_products_CroppedVersion.png?1692725682)

![adafruit_products_DeviceListPage_UpdateRequired.png](https://cdn-learn.adafruit.com/assets/assets/000/123/760/medium640/adafruit_products_DeviceListPage_UpdateRequired.png?1692734902)

Next, make sure the sensor is plugged into your board and click the **&nbsp;I2C Scan&nbsp;** button.

![](https://cdn-learn.adafruit.com/assets/assets/000/113/177/medium800/sensor_page_crop_scan.png?1657724520)

You should see the BMP280's default I2C address of&nbsp;`0x77`&nbsp;pop-up in the I2C scan list.

![](https://cdn-learn.adafruit.com/assets/assets/000/123/761/medium800/adafruit_products_Screenshot_2023-08-22_174635.png?1692751682)

###  I don't see the sensor's I2C address listed! 


First, double-check the connection and/or wiring between the sensor and the board.

Then, reset the board and let it re-connect to Adafruit IO WipperSnapper.

With the sensor detected in an I2C scan, you're ready to add the sensor to your board.

**Click the New Component button or the + button** to bring up the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/127/931/medium800/sensor_page_temperature___humidity_06_AddComponent.png?1708631009)

Adafruit IO supports a large amount of components. To quickly find your sensor, type `BMP280`&nbsp;into the search bar, then select the&nbsp; **BMP280** &nbsp;component.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/245/medium800/adafruit_products_YYSCYshukg.png?1709160171)

On the component configuration page, the BMP280's sensor address should be listed along with the sensor's settings.

The&nbsp; **Send Every** &nbsp;option is specific to each sensor's measurements. This option will tell the Feather how often it should read from the BMP280's sensors and send the data to Adafruit IO. Measurements can range from every 30 seconds to every 24 hours.

For this example, set the&nbsp; **Send Every&nbsp;** interval to every 30 seconds. Don't forget to scroll down as there are 4 sensor metrics / feeds to select. On a small screen you may only see the first 3 and then wonder why altitude isn't updating (it will still be set to the default of every 15 minutes)

![](https://cdn-learn.adafruit.com/assets/assets/000/123/768/medium800/adafruit_products_Screenshot_2023-08-22_184004.png?1692751881)

Your device interface should now show the sensor components you created. After the interval you configured elapses, WipperSnapper will automatically read values from the sensor(s) and send them to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/123/771/medium800/adafruit_products_Screenshot_2023-08-22_184439.png?1692752300)

To view the data that has been logged from the sensor, click on the graph next to the sensor name.

![](https://cdn-learn.adafruit.com/assets/assets/000/123/772/medium800/adafruit_products_dwLQCboibT.png?1692752239)

Here you can see the feed history and edit things about the feed such as the name, privacy, webhooks associated with the feed and more. If you want to learn more about how feeds work, [check out this page](https://learn.adafruit.com/all-the-internet-of-things-episode-four-adafruit-io/advanced-feeds).

![](https://cdn-learn.adafruit.com/assets/assets/000/123/773/medium800/adafruit_products_ab0Gl9x5Tf.png?1692752439)

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## F.A.Q.

### 

No, your sensor is likely just fine. The altitude calculation depends on knowing the barometric pressure at sea level

**If you do not set the correct sea level pressure for your location FOR THE CURRENT DAY it will not be able to calculate the altitude accurately**

Barometric pressure at sea level changes daily based on the weather!

### 

The BMx280 'saves' the last reading in memory for you to query. Just read twice in a row and toss out the first reading!

# Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

## Downloads

# Documents

- [Datasheet for the BMP280 sensor used in the breakout](http://www.adafruit.com/datasheets/BST-BMP280-DS001-11.pdf)
- [Arduino BMP280 Driver](https://github.com/adafruit/Adafruit_BMP280_Library)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20BMP280.fzpz)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-BMP280-Breakout-PCB)

# Schematic - STEMMA QT version
![](https://cdn-learn.adafruit.com/assets/assets/000/093/017/medium800/adafruit_products_BMP280_sch.png?1594315756)

# Fab Print - STEMMA QT version
![](https://cdn-learn.adafruit.com/assets/assets/000/093/018/medium800/adafruit_products_BMP280_fab_print.png?1594315811)

# Schematic - Original version

Click to enlarge. **BMP280 shares the same package & pinout as the BME280 so the schematic is the same**

![](https://cdn-learn.adafruit.com/assets/assets/000/026/865/medium800/sensors_sch.png?1438371131)

# Fab Print - Original version

In inches. **BMP280 shares the same package & pinout as the BME280 so the layout is the same**

![](https://cdn-learn.adafruit.com/assets/assets/000/026/866/medium800/sensors_print.png?1438371174)


## Primary Products

### Adafruit BMP280 I2C or SPI Barometric Pressure & Altitude Sensor

[Adafruit BMP280 I2C or SPI Barometric Pressure & Altitude Sensor](https://www.adafruit.com/product/2651)
Bosch has stepped up their game with their new BMP280 sensor, an environmental sensor with temperature, barometric pressure that is the next generation upgrade to the BMP085/BMP180/BMP183. This sensor is great for all sorts of weather sensing and can even be used in both I2C and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2651)
[Related Guides to the Product](https://learn.adafruit.com/products/2651/guides)

## Related Guides

- [ulab: Crunch Numbers fast in CircuitPython](https://learn.adafruit.com/ulab-crunch-numbers-fast-with-circuitpython.md)
- [I2C Addresses and Troublesome Chips](https://learn.adafruit.com/i2c-addresses.md)
- [Adafruit 16-channel PWM/Servo Shield](https://learn.adafruit.com/adafruit-16-channel-pwm-slash-servo-shield.md)
- [Facial Detection and Recognition with MEMENTO](https://learn.adafruit.com/facial-detection-and-recognition-with-memento.md)
- [Bare E-Ink Displays Crash Course](https://learn.adafruit.com/bare-e-ink-displays-crash-course.md)
- [Adafruit Ethernet FeatherWing](https://learn.adafruit.com/adafruit-wiz5500-wiznet-ethernet-featherwing.md)
- [Blues Playground](https://learn.adafruit.com/blues-playground.md)
- [Minty Boost](https://learn.adafruit.com/minty-boost.md)
- [Adafruit PCA9546 4-Channel I2C Multiplexer](https://learn.adafruit.com/adafruit-pca9546-4-channel-i2c-multiplexer.md)
- [Adafruit Sparkle Motion Stick](https://learn.adafruit.com/adafruit-sparkle-motion-stick.md)
- [Improved AMG8833 PyGamer Thermal Camera](https://learn.adafruit.com/improved-amg8833-pygamer-thermal-camera.md)
- [Adafruit Mini I2C STEMMA QT Gamepad with seesaw](https://learn.adafruit.com/gamepad-qt.md)
- [TIMESQUARE Watch Kit](https://learn.adafruit.com/timesquare-watch-kit.md)
- [Adafruit SPI FRAM Breakout - 2 or 4 Mbit](https://learn.adafruit.com/spi-fram-2mbit-4mbit.md)
- [Adafruit AD5693R 16-Bit DAC Breakout Board](https://learn.adafruit.com/adafruit-ad5693r-16-bit-dac-breakout-board.md)
