BME280 is an integrated digital humidity, pressure and temperature sensor. This sensor module is compact in a small smart integrated device on a metal-led this device runs on a low power consumption that allow the sensor driven in a battery powered devices such as smart handset, GPS devices, Smart Watches, etc.

The BME280 achieves in a high performance in all applications that requires humidity and temperature measurement applicable to home automation and control, navigation, health care, and global positioning system (GPS). The humidity sensor provides a fast response time for fast context awareness application and high accuracy in a wide temperature range. The pressure sensor is a barometric pressure with extremely high accuracy and resolution and lower noise than other pressure sensor.

The integrated temperature sensor is optimized for lowest noise and highest resolution. Its output used for temperature compensation of the pressure and humidity sensor and can be used for estimation and acquisition of the ambient temperature.

This BME280 sensor provides both TWI/i2c and SPI interface that can be powered using 1.71 to 3.6 volts for the VDD and 1.2 ~ 3.6 volts for the VDD-IO the measurement can be triggered by the host. When the sensor is disabled the current consumption drops to 0.1 uA. The sensor also can be operated in 3 modes, sleep mode, normal mode, and forced mode. For wiring diagram using i2c or SPI see the diagram below.

Required Components

  • Arduino Microcontroller, NodeMCU, Teensy Board, TeensyDuino, ESP8266 12, 12E, ESP8266 NodeMCU, ESPDuino, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266, ATMEGA250 16 MHz, ATSAM3x8E, ATSAM21D, ATTINY85 16/8 MHz (Note: The Diagram below is using NANO. (please refer to the respective pin-outs)
  • BME280 Sensor / BME280 Module
  • Jumper Wires / DuPont Wires
  • Solder Less Bread Board

Wiring Guide

Source Code Using Two Wire Interface / i2C

Source Code Using Serial Peripheral Interface (SPI)


  • Download BOSCH SENSORTEC BME280 Datasheet | PDF
  • Download BME280 I2C Code Library | Zip
  • Download BME280 SPI Code Library | Zip


Wiring the BME280 Environmental Sensor Using i2C/SPI Interface with Microcontroller
Tagged on:             


One thought on “Wiring the BME280 Environmental Sensor Using i2C/SPI Interface with Microcontroller

Leave a Reply

Your email address will not be published. Required fields are marked *