Product Guides

BME280 Environmental Sensor: Design and Integration Guide

Weather stations, indoor navigation and altitude logging all depend on the same three measurements: temperature, humidity and barometric pressure. The BME280 from Bosch Sensortec packs all three into a single LGA-8 package with an I2C and SPI interface, which is why it turns up in so many environmental sensing designs. This guide covers how to get reliable readings out of it and the layout habits that keep the data trustworthy.

AI-generated isometric illustration of a BME280 temperature humidity and pressure sensor

One package, three measurements

Putting temperature, humidity and pressure in one package means the three readings are taken at the same physical point and at the same time. That consistency matters whenever you derive a value from more than one of them — altitude from pressure and temperature, or dew point from temperature and humidity. Sensors that are physically separate can disagree, and reconciling them in firmware is more work than most designs anticipate.

Interface and integration

  • I2C — the default when the sensor shares an existing bus; remember the address pin and the pull-ups.
  • SPI — a dedicated link with higher throughput and no address conflict; the right choice on a busy bus.
  • Supply range — the part runs from a low-voltage rail, so it can sit directly on a modern 3.3 V MCU domain.
  • Sampling — oversampling and filter settings trade power against noise; match them to how fast the environment actually changes.

Getting trustworthy readings

The single biggest cause of disappointing sensor data is the enclosure, not the silicon. Keep the sensor away from regulators, displays and other heat sources; provide the vent opening the integration guide calls for; and avoid coating the opening. Because relative humidity is computed from the temperature reading, a sensor warmed by its neighbours will report an error that looks like a humidity problem but is really a thermal one. Give the measurement a stable thermal environment and the numbers settle down.

Environmental sensors we stock

PartMeasuresPackageLink
BME280Temperature / humidity / pressure (Bosch Sensortec)LGA-8BME280
BMP280Temperature / pressure (Bosch Sensortec)LGA-8BMP280
SHT31-DIS-BTemperature / humidity (Sensirion)DFNSHT31-DIS-B
AHT20Temperature / humiditySMDAHT20
DS18B20Digital temperature (1-Wire)TO-92 / SMDDS18B20

See the full sensor range. Send your sensor type, interface and quantity for a real-time quote.

Frequently asked questions

What does the BME280 measure?

It combines temperature, humidity and barometric pressure in one package, which is what makes it popular for weather stations, indoor navigation and altitude logging. Having all three on one die means the readings are taken at the same point and the same moment, so derived quantities such as altitude or dew point stay consistent.

Should I use I2C or SPI?

I2C is the usual choice when the sensor shares an existing two-wire bus and speed is not critical. SPI is preferred when you want a dedicated link, higher throughput, or you need to avoid address conflicts on a busy bus. Both are supported, and the choice is largely about what the rest of your board already uses.

Why does my humidity reading drift?

Humidity sensors measure the air that reaches the sensing element, so board layout matters: keep the sensor away from heat sources, leave the recommended vent opening in the enclosure, and avoid conformal coating over the opening. A part sitting near a warm regulator will read a consistently higher temperature and therefore a lower relative humidity.

Do you stock BME280 and related environmental sensors?

Yes. We stock the BME280 and a range of temperature, humidity and pressure sensors, and we can quote by quantity with date codes so you can validate before committing to volume.

Recommended next steps

If you are sourcing any of the parts mentioned in this guide, we can help you confirm stock, pricing, and lead times quickly.

✓ Genuine & original parts — JTDZ Tech supplies components as an independent distributor. Every part we ship is guaranteed to be genuine and original; we document date codes and offer inspection options so you can verify before committing to volume.
💬 Prices vary with order quantity & market conditions. The listed price is for reference only. Contact us for a real-time quote — we offer competitive pricing for volume orders and hard-to-find parts.

About us & trademarks: JTDZ Tech (Shenzhen Jingteng Electronics Technology Co., Ltd.) is an independent distributor of electronic components. We are not an authorised distributor or representative of the manufacturers named in this article. Manufacturer and part names are used for indicative purposes only, to help identify the components discussed; all trademarks remain the property of their respective owners. Always verify specifications against the manufacturer's datasheet before design-in or purchase.

AT32F425C8T7 Value-Line MCU: Selection Guide for Cost-Sensitive Designs
COS721SR Low-Noise Op-Amp: Signal-Chain Selection Guide