Ordered on weekdays before 14:00 = shipped the same day and delivered the next day in 98% of cases. Free returns 30-day reflection period 1-year warranty

Wiring diagram and code example

How to connect the 3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280 to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

BME280 Temperature, Humidity & Pressure Sensor Demo

This project reads ambient temperature, relative humidity, and atmospheric pressure using a 3.3V BME280 sensor connected to an Arduino Uno. A 4-channel bidirectional logic level shifter safely translates the 5V I2C signals down to 3.3V. Sensor readings are output to the Serial Monitor every two seconds.

Wiring diagram: 3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280 on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: 3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280 on an Arduino UNO
Connection table · Click to enlarge
BME280_Temperature_Humidity_Pressure_Sen.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : BME280 Temperature, Humidity & Pressure Sensor Demo
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : Bosch BME280 3.3v 3-in-1 sensor Temperature Humidity and Air Pressure
 *  Libraries : Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

Adafruit_BME280 bme;

void setup() {
  Serial.begin(115200);
  while (!Serial) delay(10);

  Serial.println(F("Initializing BME280 sensor..."));

  // SDO tied to GND sets address to 0x76
  if (!bme.begin(0x76, &Wire)) {
    Serial.println(F("Could not find BME280 sensor. Check wiring!"));
    while (1) delay(100);
  }

  Serial.println(F("BME280 sensor ready!"));
}

void loop() {
  float temperature = bme.readTemperature();
  float humidity = bme.readHumidity();
  float pressure = bme.readPressure() / 100.0F; // Convert Pa to hPa

  Serial.print(F("Temperature: "));
  Serial.print(temperature, 1);
  Serial.print(F(" °C | Humidity: "));
  Serial.print(humidity, 1);
  Serial.print(F(" % | Pressure: "));
  Serial.print(pressure, 1);
  Serial.println(F(" hPa"));

  delay(2000);
}

Required libraries: Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15

Wiring diagram and example code generated by Codey.online — https://www.codey.online

ESP32 BME280 Weather Sensor Monitor

This project reads ambient temperature, relative humidity, and barometric pressure from the Bosch BME280 sensor using the I2C interface. Connect the 3.3V sensor directly to the ESP32 power and default I2C pins (GPIO 21 and 22). Open the Serial Monitor at 115200 baud to view real-time environmental measurements updated every two seconds.

Wiring diagram: 3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280 on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: 3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280 on an ESP32 DevKit V1
Connection table · Click to enlarge
ESP32_BME280_Weather_Sensor_Monitor.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : ESP32 BME280 Weather Sensor Monitor
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : Bosch BME280 3.3v 3-in-1 sensor Temperature Humidity and Air Pressure
 *  Libraries : Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

Adafruit_BME280 bme;

void setup() {
  Serial.begin(115200);
  while (!Serial) delay(10);

  Serial.println("Initializing BME280 sensor...");

  // Default I2C address is usually 0x76 or 0x77
  if (!bme.begin(0x76) && !bme.begin(0x77)) {
    Serial.println("Could not find a valid BME280 sensor! Check wiring.");
    while (1) delay(100);
  }

  Serial.println("BME280 initialized successfully.");
}

void loop() {
  float temperature = bme.readTemperature();
  float humidity = bme.readHumidity();
  float pressure = bme.readPressure() / 100.0F; // Convert Pa to hPa

  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");

  Serial.print("Humidity:    ");
  Serial.print(humidity);
  Serial.println(" %");

  Serial.print("Pressure:    ");
  Serial.print(pressure);
  Serial.println(" hPa");

  Serial.println("------------------------");
  delay(2000);
}

Required libraries: Adafruit BME280 Library 2.3.0, Adafruit Unified Sensor 1.1.15

Wiring diagram and example code generated by Codey.online — https://www.codey.online

3-in-1 sensor Temperature, Humidity, and Air Pressure | 3.3V | I2C and SPI | Bosch BME280

NOTE 3.3V version. Suitable for ESP8266, ESP32, Wemos D1 etc.

GY-BME280 is a Breakout Board with a Bosch Sensortec ME280 Temperature, Humidity, and Barometric Pressure Sensor.
The board has a selectable I2C address (solder link GS2)
- I2C pull-up resistors
- Includes 7 pin header 2.54mm
- two mounting holes of 3.5mm.

BME280 Features
- Sensor brand: Bosch
- Sensor size 2.5mm x 2.5mm x 0.93mm metal cap LGA
- Digital interface I2C (up to 3.4 MHz) and SPI (3 and 4 wire, up to 10 MHz)
- Supply voltage: 3V to 3.6 V
- Power consumption 1.8 uA @ 1Hz humidity and temperature, 2.8 uA @ 1Hz pressure and temperature. 3.6 uA @ 1Hz humidity, pressure and temperature and 0.1 uA in sleep mode
- Temperature sensor range -40 / +85 C,
- Humidity range; 0 - 100% rel. Humidity
- Barometric pressure range: 300- 1100 hPa
- Both I2C and SPI

Dimensions
Length: 1.47cm
Width: 1.14cm
Height: 0.23cm

  • 3-in-1 sensor
  • 3.3V version
  • I2C and SPI
  • 2 mounting holes

Why choose this product?

  • Measures three values – Temperature, humidity and air pressure in one sensor.
  • Suitable for ESP boards – For ESP8266, ESP32 and Wemos D1.
  • I2C and SPI – Works with both digital interfaces.
  • Selectable I2C address – Address adjustable via solder bridge GS2.
  • Includes pull-ups – Equipped with I2C pull-up resistors.
Specifications
Dimensions1,47cm x 1,14cm x 0,23cm
Pin spacing2,54 mm
InterfaceI2C
Suitable forESP8266, ESP32, Wemos D1
Temperature range-40 / +85 C
Supply voltage3V to 3.6 V
Mounting holes3.5mm
Max. humidity0 - 100% rel.
Sensor size2.5mm x 2.5mm x 0.93mm
Air pressure300- 1100 hPa

In the package

  • Breakout board with Bosch BME280
  • 7-pin header 2.54mm

Frequently bought together

Total: € 15,05

Reviews

No reviews yet.

Write a review
Your rating

Shipping & returns

Shipping

  • Parcel with track & trace€ 7,70Within 24 hours
  • Pick up at PostNL location€ 7,40Within 24 hours
  • Letterbox parcel€ 3,70Within 2 business days
  • Letterbox parcel 24 hours€ 4,55Within 24 hours
  • Pick up in storeFree
All about shipping

Returns

Not satisfied? You have 30 days after delivery to return the product.

All about returns