BME680

A Bosch 4-in-1 environmental sensor that measures temperature, humidity, barometric pressure, and gas (VOC) air quality over I2C or SPI.

  • Chip supply (VDD)1.71 V to 3.6 V (VDDIO 1.2 V to 3.6 V)
  • Breakout supply (VIN)3 V to 5 V, onboard 3.3 V regulator, 3V3 pin gives up to 100 mA
  • InterfacesI2C up to 3.4 MHz, SPI (3 and 4 wire) up to 10 MHz
  • I2C address0x77 (SDO high, board default) or 0x76 (SDO to GND)
BME680, A Bosch 4-in-1 environmental sensor that measures temperature, humidity, barometric pressure, and gas (VOC) air quality over I2C or SPI.
In short

The BME680 is Bosch's 4-in-1 sensor for gas (VOC), humidity, pressure and temperature; the chip runs from 1.71 V to 3.6 V and talks I2C up to 3.4 MHz or SPI up to 10 MHz (Bosch BME680 datasheet rev 1.9, p. 3). Adafruit's breakout adds a 3.3 V regulator and level shifting, so VIN takes 3 V to 5 V and the logic pins are 3 V to 5 V safe (Adafruit BME680 guide, Pinouts). Wire VIN, GND, SCK to SCL and SDI to SDA; the board answers at 0x77, or 0x76 with SDO tied to GND (datasheet, p. 38).

The BME680 is a digital environmental sensor from Bosch Sensortec that combines four measurements in one 3.0 × 3.0 mm package: temperature, relative humidity, barometric pressure, and a gas (VOC) reading for air quality (Bosch datasheet rev 1.9, p. 3). On this Adafruit breakout the chip is paired with an onboard 3.3 V regulator and level shifting, so it runs from a 3 V to 5 V supply while its logic stays compatible with both 3.3 V and 5 V microcontrollers.

Humidity is specified to ±3 % RH (20 to 80 % RH at 25 °C), pressure across 300 to 1100 hPa with ±0.6 hPa absolute accuracy, and temperature to ±0.5 °C at 25 °C or ±1.0 °C across 0 to 65 °C (datasheet, pp. 10 to 12). The gas channel heats a metal-oxide (MOX) hot plate, typically to 200 to 400 °C (p. 21), and its resistance shifts in the presence of volatile organic compounds such as alcohols, solvents, and cooking or paint fumes, which lets Bosch's BSEC library derive an indoor air-quality index.

The chip's I2C address is 0x77 with SDO high and 0x76 with SDO low (datasheet, p. 38); this board defaults to 0x77. The same header also exposes a full 4-wire SPI interface via the SCK, SDI, SDO and CS pins. Bosch supplies the BSEC library for calibrated IAQ output, and Adafruit provides a simpler Arduino library for raw temperature, humidity, pressure, and gas-resistance values.

BME680 pinout

tinkered.ai/components/bme680BME680VINPower3V3PowerGNDGroundSCKI2C SCL · SPI SCKSDOSPI MISO · DigitalSDII2C SDA · SPI MOSICSSPI chip select · Digital
PinFunctionType
VINVIN (3-5V)3.3 V (max 5 V)power in
3V33V3 (out)power out
GNDGNDpower in
SCKI2C SCL, SPI SCKbidirectional
SDOSPI MISO, Digitalbidirectional
SDII2C SDA, SPI MOSIbidirectional
CSSPI chip select, Digitalinput

How to wire the BME680

Pin by pin, for the board you have.

BME680Arduino UnoNote
VIN5V
GNDGND
SCKSCL
SDISDA
Open this circuit on an Arduino UnoThe full Arduino Uno guide

BME680 code

Every example here compiles for its board.

Libraries: adafruit/Adafruit BME680 Library
// BME680 on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/bme680
#include <Wire.h>
#include <Adafruit_BME680.h>

Adafruit_BME680 bme;

void setup() {
  Serial.begin(9600);
  if (!bme.begin()) {                 // default I2C address 0x77
    Serial.println("BME680 not found");
    while (1) delay(10);
  }
  bme.setTemperatureOversampling(BME680_OS_8X);
  bme.setHumidityOversampling(BME680_OS_2X);
  bme.setPressureOversampling(BME680_OS_4X);
  bme.setGasHeater(320, 150);         // 320 C for 150 ms
}

void loop() {
  if (bme.performReading()) {
    Serial.print(bme.temperature); Serial.print(" C  ");
    Serial.print(bme.humidity);    Serial.print(" %  ");
    Serial.print(bme.pressure / 100.0); Serial.print(" hPa  ");
    Serial.print(bme.gas_resistance / 1000.0); Serial.println(" kOhm");
  }
  delay(2000);
}
Compiled for arduino:avr:uno on 2026-10-30

Before you wire it

Do
  • Wire to the board-agnostic SDA/SCL pins (the module aliases SCK→SCL and SDI→SDA for I2C), never the raw analog pins.
  • Power from VIN (3-5V, on-board regulator). 3V3 is a regulator OUTPUT: leave it unconnected.
  • The Adafruit breakout has on-board SDA/SCL pull-ups (registered on the part): do not add external pull-up resistors.
  • Default I2C address is 0x77 (bme.begin()); tie SDO to GND for 0x76.
  • Leave CS unconnected (or tie to VIN) to select I2C mode: do not drive it as an SPI chip-select in an I2C sketch.
  • On ESP32 with a second I2C device, DAISY-CHAIN the bus through the BME680's own pins: do not fan each net out from the ESP32 pins.
Don’t
  • No external I2C pull-up resistors: the module already has them on-board.
  • No expecting the raw registers to read in °C/%/hPa/Ω: the library applies the Bosch calibration; always read via Adafruit_BME680.
  • Power the breakout through VIN with a 3 V to 5 V rail, the same as your microcontroller's logic level; the onboard regulator's 3.3 V output is broken out on the 3V3 pin (up to 100 mA) and is an output, not an input.
  • Logic is level-shifted on the board, so SCK/SCL and SDI/SDA work directly with either 3.3 V or 5 V microcontrollers.
  • For I2C, the breakout's level shifter already pulls SDA and SCL up, so no external pull-ups are needed.
  • Default I2C address is 0x77; tie SDO to GND to move it to 0x76, which is what some library examples expect.
  • Leave CS unconnected (or tied high) for I2C: the chip switches to SPI the moment CS is pulled low and keeps I2C off until the next power-on reset (Bosch datasheet, p. 38).
  • The heater draws 9 to 13 mA while it runs (Bosch datasheet, p. 8), far more than the climate channels, so budget for it on battery projects.
  • The MOX gas element needs warm-up: Adafruit recommends a 48-hour burn-in on a new sensor and about 30 minutes in your chosen mode each time it is used before trusting gas readings.

Specifications

Chip supply (VDD)
1.71 V to 3.6 V (VDDIO 1.2 V to 3.6 V)Bosch BME680 datasheet rev 1.9, p. 3
Breakout supply (VIN)
3 V to 5 V, onboard 3.3 V regulator, 3V3 pin gives up to 100 mAAdafruit BME680 guide, Pinouts
Interfaces
I2C up to 3.4 MHz, SPI (3 and 4 wire) up to 10 MHzBosch BME680 datasheet rev 1.9, p. 3
I2C address
0x77 (SDO high, board default) or 0x76 (SDO to GND)Bosch BME680 datasheet rev 1.9, p. 38
Chip ID
0x61 (register 0xD0)Bosch BME680 datasheet rev 1.9, p. 28
Pressure
300 to 1100 hPa, ±0.6 hPa absoluteBosch BME680 datasheet rev 1.9, p. 11
Humidity
0 to 100 % RH, ±3 % RH (20 to 80 % RH, 25 °C)Bosch BME680 datasheet rev 1.9, p. 10
Temperature
-40 to +85 °C, ±0.5 °C at 25 °C, ±1.0 °C over 0 to 65 °CBosch BME680 datasheet rev 1.9, p. 12
Current draw
3.7 µA at 1 Hz without gas, 9 to 13 mA with the heater at 320 °C, 0.15 µA in sleepBosch BME680 datasheet rev 1.9, pp. 3, 8
Supply voltage
3.3 V
Maximum supply voltage
5 V
Interface
I2C
On-board I2C pull-ups
Yes (10 kΩ)
Dimensions
25.4 × 17.8 × 5 mm
Weight
2 g

From the Adafruit (Bosch BME680)'s datasheet, published by Adafruit (Bosch BME680).

Common mistakes

  1. Using the wrong I2C address

    This board answers at 0x77 by default, but some examples assume 0x76. If begin() fails, initialize with the 0x77 address or move the board to 0x76 by grounding SDO.

  2. Expecting instant, calibrated air-quality readings

    The gas resistance slowly rises as the MOX element warms up to its baseline. Skipping Adafruit's recommended warm-up (a 48-hour burn-in on a new sensor, then about 30 minutes per session) gives readings that keep climbing and look broken.

  3. Treating gas resistance as a calibrated ppm value

    The raw output is a gas resistance in ohms, not a concentration. A usable indoor air-quality index requires baseline tracking, which is what Bosch's BSEC library provides. Comparing raw ohms between boards or sessions without a baseline is misleading.

  4. Ignoring self-heating on the temperature reading

    Bosch notes the temperature reading includes PCB heat and sensor self-heating and is typically above ambient (datasheet, p. 12). Apply a temperature offset or sample less often for accurate room temperature.

  5. Confusing it with the BME280

    The BME280 has no gas channel and reports chip ID 0x60, while the BME680 reports 0x61 (Bosch BME680 datasheet, p. 28). Code written for the BME280 will not drive the BME680's heater or expose gas data, so use a BME680 library.

BME680 questions

What is the BME680's I2C address?

It is 0x77 when SDO is high and 0x76 when SDO is tied to GND (Bosch BME680 datasheet, p. 38). The Adafruit breakout defaults to 0x77, which is also the Adafruit library's default. Two BME680s can share one bus by giving them different SDO levels.

Can I use the BME680 with a 5 V Arduino?

Yes, on the Adafruit breakout: VIN takes 3 V to 5 V through its regulator and every input pin is level-shifted to be 3 V to 5 V safe (Adafruit BME680 guide, Pinouts). The bare chip is limited to 3.6 V (Bosch datasheet, p. 3), so a board without a regulator must run from 3.3 V.

Can I use the BME680 with an ESP32?

Yes. Power VIN from 3.3 V so the level shifter's logic matches the ESP32, then wire SCK to SCL and SDI to SDA and leave CS unconnected. The chip's own interface supply range is 1.2 V to 3.6 V (Bosch datasheet, p. 3).

Does the BME680 give a CO2 or ppm reading?

No. The gas channel returns a resistance in ohms that changes with volatile organic compounds. Bosch's BSEC library turns it into an IAQ index from 0 to 500 once its calibration period has passed (Bosch datasheet, p. 9); the BME680 does not measure CO2 directly.

Why does my BME680 gas reading keep rising?

The MOX element's resistance slowly rises as it warms to its baseline. Adafruit recommends a 48-hour burn-in on a new sensor and about 30 minutes in your chosen mode each session before trusting gas trends.

BME680 vs BME280: which should I use?

Both measure temperature, humidity and pressure with the same 1.71 V to 3.6 V chip supply and the same I2C addresses. The BME680 adds the heated gas sensor, which draws 9 to 13 mA while it runs (Bosch BME680 datasheet, p. 8). Pick the BME280 for pure climate logging on a battery, the BME680 when you want air quality.

Why is my BME680 not found on I2C?

Try both 0x77 and 0x76, or run an I2C scanner. Check that CS is not wired to a pin that goes low, because one low pulse on CS switches the chip to SPI until it is power-cycled (Bosch datasheet, p. 38), and that SCK goes to SCL and SDI to SDA.

Build something with the BME680

  • Indoor air-quality monitor

    Combine the gas channel with humidity and temperature to build a desk or room monitor that flags rising VOC levels from cooking, cleaning products, or poor ventilation.

    Build this
  • All-in-one weather station

    Log barometric pressure, temperature, and humidity trends to track local weather and predict changes, using pressure as a short-term forecast indicator.

    Build this
  • Altimeter and elevation logger

    Convert the sensor's fine pressure resolution into relative altitude for drones, hiking loggers, or stairwell-counting projects.

    Build this
  • Connected environment dashboard

    Push all four readings to an ESP32 or Raspberry Pi and chart temperature, humidity, pressure, and air quality over time on a web or MQTT dashboard.

    Build this
For AI assistants

This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/bme680.md

What will you build with it?