A BMP280 barometric pressure and temperature sensor on a 4-pin GY-BMP280 breakout that runs on 5V or 3.3V. It has its own 3.3V regulator and an I2C level shifter, so it connects straight to a 5V Arduino Uno, Nano or Mega as well as an ESP32 or Raspberry Pi Pico. It talks I2C only and reads pressure and temperature, not humidity. If you only use 3.3V boards or need SPI, our cheaper 6-pin BMP280 3.3V module suits better.
Specifications
Datasheets
What's in the box
Plus one 4-pin male header strip, not soldered.
Great for
Wiring & getting started
- Solder the header
Fit the 4-pin header to the pads and solder each pin.
- Connect power
VIN to the same voltage your board's I2C uses: 5V on an Uno or Nano, 3.3V on an ESP32 or Pico. GND to GND.
- Connect I2C
Uno or Nano: SCL to A5 and SDA to A4. Mega: SCL to 21 and SDA to 20. ESP32: SCL to GPIO22 and SDA to GPIO21.
- Run a test
Install the Adafruit BMP280 library and start it with bmp.begin(0x76). The library looks at 0x77 unless you tell it otherwise, so if the sensor is not found, run an I2C scanner and use the address it shows.
Note: the temperature reading comes from the sensor chip, which sits near the regulator, so it usually reads a little above room temperature.
