Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›BME680 Environmental Sensor

Component guide · Intermediate · 4 min read

BME680 Environmental Sensor

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the BME680 isBME680 pinoutWiring the BME680Example codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

The BME680 from Bosch measures temperature, humidity, air pressure and volatile organic compounds (VOC) in one small chip. It talks I2C (address 0x76 or 0x77) or SPI. The gas sensor gives a resistance that falls as VOC levels rise; Bosch's BSEC library turns that into an indoor air quality (IAQ) index. Use it for room air monitors and weather stations.

Key specs at a glance

Measures
Temperature, relative humidity, barometric pressure, VOC gas (as resistance)
Temperature
−40 to 85 °C, ±1 °C
Humidity
0 to 100 % RH, ±3 %
Pressure
300 to 1100 hPa, ±0.6 hPa
Interface
I2C (0x76 or 0x77) or SPI
Supply
Chip 1.71 to 3.6 V; most modules 3.3 to 5 V

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1Bosch BME680 4-in-1 Environmental Sensor (Temperature, Humidity, Pressure & VOC Gas) – I2C/SPI₹1,149
  • Option 2Bosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI₹1,089
  • Option 3Bosch BME680 Digital Temperature Humidity Pressure VOC Gas Sensor Module CJMCU-680 Development Board – I2C/SPI Interface₹829
  • Option 4DFRobot Fermion BME680 Environmental Sensor Breakout – I2C/SPI, 3.3V/5V₹1,989
  • Option 5DFRobot Gravity I2C BME680 Environmental Sensor – Temperature, Humidity, Pressure & VOC₹1,889
  • Option 6Seeed Studio Grove BME680 Temperature Humidity Pressure Gas Sensor Module₹2,369
01

What the BME680 is

The BME680 combines the temperature, humidity and pressure sensing of the BME280 with a tiny heated metal-oxide gas sensor. The heater burns off gases on the sensing layer, and its resistance shows how much VOC (from paints, cleaning sprays, cooking and breathing) is in the air.

The raw gas resistance is relative: it changes with humidity and drifts slowly. For a calibrated IAQ index and CO2 equivalent, use Bosch's BSEC library, which learns the sensor's baseline over a few days.

02

BME680 pinout

The pins on the BME680 and what each one does.

PinFunction
VCC / VINSupply, 3.3 to 5 V on modules with a regulator
GNDGround
SCL / SCKI2C clock, or SPI clock
SDA / SDII2C data, or SPI data in
SDOI2C address select (GND 0x76, VCC 0x77), or SPI data out
CSSPI chip select; high (or open) for I2C
PinFunction
VCC / VIN
Supply, 3.3 to 5 V on modules with a regulator
GND
Ground
SCL / SCK
I2C clock, or SPI clock
SDA / SDI
I2C data, or SPI data in
SDO
I2C address select (GND 0x76, VCC 0x77), or SPI data out
CS
SPI chip select; high (or open) for I2C
03

Wiring the BME680

CJMCU-680 and many blue modules answer at 0x76; Adafruit, DFRobot and some Waveshare boards default to 0x77. The code below tries both.

BME680 pinArduino UnoESP32
VCC5V (or 3.3V)3V3
GNDGNDGND
SDAA4GPIO 21
SCLA5GPIO 22
SDOGND (0x76) or VCC (0x77)GND (0x76) or VCC (0x77)
VCC
Arduino Uno:
5V (or 3.3V)
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
SDA
Arduino Uno:
A4
ESP32:
GPIO 21
SCL
Arduino Uno:
A5
ESP32:
GPIO 22
SDO
Arduino Uno:
GND (0x76) or VCC (0x77)
ESP32:
GND (0x76) or VCC (0x77)
04

Example code

Higher gas resistance means cleaner air. Let it run for 30 minutes or more before comparing readings, and compare against its own baseline, not a fixed number.

Read all four values (Adafruit BME680 library) · Arduino C++Verify & upload in Electrolark
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include "Adafruit_BME680.h"

Adafruit_BME680 bme;   // also works with the BME688

void setup() {
  Serial.begin(115200);
  if (!bme.begin(0x76) && !bme.begin(0x77)) { Serial.println("No sensor at 0x76 or 0x77"); while (1); }
  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()) return;
  Serial.print(bme.temperature); Serial.print(" C  ");
  Serial.print(bme.humidity); Serial.print(" %  ");
  Serial.print(bme.pressure / 100.0); Serial.print(" hPa  gas ");
  Serial.print(bme.gas_resistance / 1000.0); Serial.println(" kOhm");
  delay(3000);
}
05

Setup and tuning

Burn-in

a new sensor stabilises over the first 48 hours of running.

Self-heating

the gas heater warms the chip; read temperature less often or use a lower duty cycle if temperature accuracy matters.

IAQ index

Bosch BSEC (BSEC2 for the Arduino IDE) gives IAQ 0 to 500 and estimated CO2; it needs more memory than an Uno has, so use an ESP32.

Placement

keep it out of direct airflow from fans and away from the board's regulator.

06

What you need

Shop this list12 of 13 found in our store · ₹14,958

  • Bosch BME680 4-in-1 environmental sensor: the sensor this guide coversBosch BME680 4-in-1 Environmental Sensor (Temperature, Humidity, Pressure & VOC Gas) – I2C/SPI₹1,149Closest match, check the specs
  • Bosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI: another version this guide coversBosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI₹1,089
  • Bosch BME680 Digital Temperature Humidity Pressure VOC Gas Sensor Module CJMCU-680 Development Board – I2C/SPI Interface: another version this guide coversBosch BME680 Digital Temperature Humidity Pressure VOC Gas Sensor Module CJMCU-680 Development Board – I2C/SPI Interface₹829
  • DFRobot Fermion BME680 Environmental Sensor Breakout – I2C/SPI, 3.3V/5V: another version this guide coversDFRobot Fermion BME680 Environmental Sensor Breakout – I2C/SPI, 3.3V/5V₹1,989
  • DFRobot Gravity I2C BME680 Environmental Sensor – Temperature, Humidity, Pressure & VOC: another version this guide coversDFRobot Gravity I2C BME680 Environmental Sensor – Temperature, Humidity, Pressure & VOC₹1,889
  • Seeed Studio Studio Grove BME680 Temperature Humidity Pressure Gas Sensor Module: another version this guide coversSeeed Studio Grove BME680 Temperature Humidity Pressure Gas Sensor Module₹2,369Closest match, check the specs
  • Waveshare BME680 Environmental Sensor Module – I2C/SPI Interface, 3.3V/5V Compatible: another version this guide coversWaveshare BME680 Environmental Sensor Module – I2C/SPI Interface, 3.3V/5V Compatible₹1,229
  • BME680 White Shell Built-in Cotton Core with Card Holder 1 Meter Cable – I2C: another version this guide coversBME680 White Shell Built-in Cotton Core with Card Holder 1 Meter Cable – I2C₹2,139
  • BME680 Stainless Steel Probe Wire 1 Meter – I2C Interface: another version this guide coversBME680 Stainless Steel Probe Wire 1 Meter – I2C Interface₹1,699
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
07

Alternatives and when to choose them

  • ✓BME688: same pinout, adds gas scanning for AI gas detection.
  • ✓BME280 vs BMP280: no gas sensor, lower cost.
  • ✓VOC and indoor air quality sensors: SGP40, ENS160 and MQ types compared.
  • ✓CO2 sensors: for true CO2, use an NDIR sensor.
08

Try it: I2c pullup calculator

Change the values and the diagram and results update as you type.

09

Common mistakes to avoid

  • !Treating the gas resistance as ppm of a specific gas.
  • !Expecting real CO2 values; the BME680 estimates CO2 equivalent from VOC.
  • !Reading it right after power-up, before the heater has settled.
  • !Trying to run BSEC on an Arduino Uno.
10

Frequently asked questions

What is the BME680's I2C address?

0x76 with SDO to GND or 0x77 with SDO to VCC.

Does the BME680 measure CO2?

No. It measures VOCs; BSEC estimates a CO2 equivalent. Use an NDIR sensor such as the SCD40 for real CO2.

BME680 or BME688?

The BME688 is the newer version with gas scanning for AI classification; for normal IAQ readings they behave the same.

Why does the gas reading keep changing?

The sensor needs time to settle, and humidity changes affect it. BSEC compensates for this.

Does it work at 5 V?

Modules with a regulator do. The bare chip is 3.3 V.

Parts for this guide

  • Bosch BME680 4-in-1 Environmental Sensor (Temperature, Humidity, Pressure & VOC Gas) – I2C/SPI
    ₹1,149View
  • Bosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI
    ₹1,089View
  • Bosch BME680 Digital Temperature Humidity Pressure VOC Gas Sensor Module CJMCU-680 Development Board – I2C/SPI Interface
    ₹829View
  • DFRobot Fermion BME680 Environmental Sensor Breakout – I2C/SPI, 3.3V/5V
    ₹1,989View
  • DFRobot Gravity I2C BME680 Environmental Sensor – Temperature, Humidity, Pressure & VOC
    ₹1,889View
  • Seeed Studio Grove BME680 Temperature Humidity Pressure Gas Sensor Module
    ₹2,369View
  • Waveshare BME680 Environmental Sensor Module – I2C/SPI Interface, 3.3V/5V Compatible
    ₹1,229View
  • BME680 White Shell Built-in Cotton Core with Card Holder 1 Meter Cable – I2C
    ₹2,139View
  • BME680 Stainless Steel Probe Wire 1 Meter – I2C Interface
    ₹1,699View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 0.96" OLED Display 128x64
    ₹139View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Gas, Weather & EnvironmentalShop Gas, Air Quality & CO2 SensorsShop Temperature & Thermal Sensors

Calculators

I2c pullup calculator

Terms in this guide

I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.

Projects that use it

Put this into practice: 3 step-by-step builds in our project library use parts from this guide.

Intermediate · 1–2 hoursIndoor air-quality monitorView projectIntermediate · 1–2 hoursWi-Fi air-quality monitorView projectIntermediate · 1–2 hoursWi-Fi indoor air-quality station (BME680)View project
Browse all 3 projects

Keep learning

ComparisonIntermediateVOC and Indoor Air Quality SensorsVOC sensors detect a mix of organic gases from cleaners, paints and cooking and report a relative index rather than a precise gas amount.3 min read · SensorsComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · SensorsHow-toIntermediateWeather Station SensorsA DIY weather station needs three outdoor sensors: an anemometer for wind speed, a wind vane for direction and a tipping-bucket rain gauge.3 min read · SensorsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics Fundamentals

Sources

  • BME680 low power gas, pressure, temperature and humidity sensor datasheet (Bosch Sensortec)
  • Adafruit BME680 library

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the BME680 isBME680 pinoutWiring the BME680Example codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)2 items · ₹1,353

Bosch BME680 4-in-1 Environmental Sensor (Temperature, Humidity, Pressure & VOC Gas) – I2C/SPI · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

Gas resistance falls when VOCs (alcohol, solvents, breath) reach the heated plate.

Serial monitor115200 baud
25.80 C  55.00 %  1008.20 hPa  gas 53.10 kOhm

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question