Component guide · Beginner · 3 min read
BMP180 pressure sensor

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The BMP180 measures air pressure (300 to 1100 hPa) and temperature over I2C at address 0x77, and you can calculate altitude from the pressure. Relative altitude resolution is about 0.25 m in its best mode. It is an older part; the BMP280 and BME280 are faster and more precise, but the BMP180 still works well for weather and altitude lessons.
Key specs at a glance
- Pressure range
- 300 to 1100 hPa (about 9000 m to −500 m)
- Accuracy
- ±1 hPa absolute, ±0.12 hPa relative
- Temperature
- ±1 °C (used for compensation)
- Interface
- I2C, address 0x77 (fixed)
- Supply
- 1.8 to 3.6 V chip; GY-68 modules accept 3.3 to 5 V
- Modes
- Ultra low power to ultra high resolution (oversampling)
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
What the BMP180 pressure sensor is
The BMP180 from Bosch is a piezo-resistive barometric pressure sensor. Air pressure falls by about 12 Pa per metre near sea level, so the same reading also gives altitude when you know the local sea-level pressure.
It is common in weather station kits and older drone flight boards such as the GY-87 10DOF module.
BMP180 pressure sensor pinout
The pins on the BMP180 pressure sensor and what each one does.
| Pin | Function |
|---|---|
| VIN | 3.3 to 5 V (module) |
| GND | Ground |
| SCL | I2C clock |
| SDA | I2C data |
| 3.3V (some boards) | Regulated 3.3 V output, not an input |
- VIN
- 3.3 to 5 V (module)
- GND
- Ground
- SCL
- I2C clock
- SDA
- I2C data
- 3.3V (some boards)
- Regulated 3.3 V output, not an input
Wiring the BMP180 pressure sensor
Check your board: bare 4-pin boards without a regulator must be powered from 3.3 V only.
| BMP180 pressure sensor pin | Arduino Uno | ESP32 |
|---|---|---|
| VCC | 5V (or 3.3V) | 3V3 |
| GND | GND | GND |
| SDA | A4 | GPIO 21 |
| SCL | A5 | GPIO 22 |
- 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
Example code
The BMP180 is register-compatible with the BMP085, so use the Adafruit BMP085 library.
#include <Wire.h>
#include <Adafruit_BMP085.h> // works for BMP085 and BMP180
Adafruit_BMP085 bmp;
const float SEA_LEVEL_PA = 101325; // set today's local sea-level pressure
void setup() {
Serial.begin(9600);
if (!bmp.begin()) { Serial.println("BMP180 not found"); while (1); }
}
void loop() {
Serial.print(bmp.readTemperature()); Serial.print(" C ");
Serial.print(bmp.readPressure() / 100.0); Serial.print(" hPa ");
Serial.print(bmp.readAltitude(SEA_LEVEL_PA)); Serial.println(" m");
delay(1000);
}Setup and tuning
absolute altitude is only as good as the sea-level pressure you enter; use the value from a nearby weather station. Relative altitude (height change) is much more reliable.
cover the sensor with a bit of foam to block drafts; strong light can also affect the reading.
it measures the board, not the room; the AHT20 or DHT22 is better for room temperature.
a fall of 2 hPa or more in three hours often means unsettled weather.
What you need
Shop this list5 of 6 found in our store · ₹903
BMP180 digital barometric pressure sensor module: the common breakoutBMP180 Digital Barometric Pressure Sensor Module for Arduino – I2C Interface₹33Closest match, check the specs
BMP180 pressure sensor module for Arduino: alternative breakoutBMP180 Digital Barometric Pressure Sensor Module for Arduino – I2C Interface₹33Closest match, check the specs
Elecrow Crowtail BMP180 barometer module: plug-in cable versionElecrow Crowtail BMP180 Barometer Module – I2C Interface₹289Closest match, check the specs
BMP180 sensor in white shell, 1 m cable: for outdoor mountingBMP180 Barometric Pressure & Temperature Sensor – White Shell, Cotton Core, 1m Cable w/ Card Holder₹369Closest match, check the specs- Uno R3 development board: the controller used in the wiring tableFind this part
16x2 LCD with I2C: to show readings on a character display16×2 LCD with I2C (RG1602A)₹179Closest match, check the specs
Alternatives and when to choose them
- BME280 / BMP280: faster, more precise, BME280 adds humidity.
- Barometric pressure sensors: MS5611 and others for drones.
- Weather station sensors: full weather builds.
Try it: Pressure converter calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Powering a regulator-less 3.3 V board from 5 V.
- Using a fixed 1013.25 hPa and expecting accurate absolute altitude.
- Putting the sensor next to a heat source.
- Leaving it exposed to fan airflow.
Frequently asked questions
What is the BMP180 I2C address?
0x77, fixed.
BMP180 vs BMP280?
The BMP280 is the newer replacement with better resolution and speed and two selectable addresses.
How accurate is the altitude?
Height changes of about 0.5 to 1 m are detectable; absolute altitude depends on the sea-level reference.
Which library do I use?
The Adafruit BMP085 library supports the BMP180.
Can it measure humidity?
No. Use a BME280 or AHT20 for humidity.
Does it work with ESP32?
Yes, at 3.3 V on GPIO 21 and 22.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 10 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

