> Source: https://www.tinkered.ai/components/bme680 (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/bme680. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# BME680

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

Source page: https://www.tinkered.ai/components/bme680
Datasheet: https://www.bosch-sensortec.com/products/environmental-sensors/gas-sensors/bme680/

## 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.

## Agent rules

Follow these when you wire this part or write code for 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.
- Do: Power from VIN (3-5V, on-board regulator). 3V3 is a regulator OUTPUT: leave it unconnected.
- Do: The Adafruit breakout has on-board SDA/SCL pull-ups (registered on the part): do not add external pull-up resistors.
- Do: Default I2C address is 0x77 (bme.begin()); tie SDO to GND for 0x76.
- Do: Leave CS unconnected (or tie to VIN) to select I2C mode: do not drive it as an SPI chip-select in an I2C sketch.
- Do: 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.
- Never: No external I2C pull-up resistors: the module already has them on-board.
- Never: No expecting the raw registers to read in °C/%/hPa/Ω: the library applies the Bosch calibration; always read via Adafruit_BME680.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| VIN | VIN (3-5V) · 3.3 V (max 5 V) | power in |
| 3V3 | 3V3 (out) | power out |
| GND | GND | power in |
| SCK | I2C SCL, SPI SCK | bidirectional |
| SDO | SPI MISO, Digital | bidirectional |
| SDI | I2C SDA, SPI MOSI | bidirectional |
| CS | SPI chip select, Digital | input |

## Wiring

### Arduino Uno

| BME680 | Arduino Uno | Note |
| --- | --- | --- |
| VIN | 5V |  |
| GND | GND |  |
| SCK | SCL |  |
| SDI | SDA |  |

### ESP32 DevKit V1

| BME680 | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| VIN | 3V3 |  |
| GND | GND |  |
| SCK | GPIO22 (D22) |  |
| SDI | GPIO21 (D21) |  |

### Raspberry Pi Pico

| BME680 | Raspberry Pi Pico | Note |
| --- | --- | --- |
| VIN | 3V3 |  |
| GND | GND |  |
| SCK | GP5 |  |
| SDI | GP4 |  |

## Code

### Arduino Uno

Libraries: adafruit/Adafruit BME680 Library

```cpp
// 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.

### ESP32 DevKit V1

Libraries: adafruit/Adafruit BME680 Library

```cpp
// BME680 on ESP32 DevKit V1: 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 esp32:esp32:esp32 on 2026-10-30.

### Raspberry Pi Pico

Libraries: adafruit/Adafruit BME680 Library

```cpp
// BME680 on Raspberry Pi Pico: 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 rp2040:rp2040:rpipico on 2026-10-30.

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| 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 mA | Adafruit BME680 guide, Pinouts |
| Interfaces | I2C up to 3.4 MHz, SPI (3 and 4 wire) up to 10 MHz | Bosch 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 absolute | Bosch 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 °C | Bosch 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 sleep | Bosch BME680 datasheet rev 1.9, pp. 3, 8 |
| Supply voltage | 3.3 V | Tinkered component registry |
| Maximum supply voltage | 5 V | Tinkered component registry |
| Interface | I2C | Tinkered component registry |
| On-board I2C pull-ups | Yes (10 kΩ) | Tinkered component registry |
| Dimensions | 25.4 × 17.8 × 5 mm | Tinkered component registry |
| Weight | 2 g | Tinkered component registry |

## Circuit notes

- 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.

## Common mistakes

- **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.
- **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.
- **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.
- **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.
- **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.

## 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.

## Related parts

- [BME280](https://www.tinkered.ai/components/bme280.md): same job: measures air pressure
- [DHT22](https://www.tinkered.ai/components/dht22.md): same job: measures humidity, single-wire
- [DHT11 Temp & Humidity Sensor](https://www.tinkered.ai/components/dht11.md): same job: measures humidity, single-wire
- [BMP280 Pressure Sensor](https://www.tinkered.ai/components/bmp280.md): same job: measures air pressure
- [Waterproof DS18B20](https://www.tinkered.ai/components/ds18b20-waterproof.md): same job: measures temperature, 1-Wire
- [MQ-2 Gas Sensor](https://www.tinkered.ai/components/mq2-gas-sensor.md): same job: measures air quality, analog output

## Try it

Tinkered simulates the BME680 in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
