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. ›BMP180 pressure sensor

Component guide · Beginner · 3 min read

BMP180 pressure 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 BMP180 pressure sensor isBMP180 pressure sensor pinoutWiring the BMP180 pressure sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

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.

  • Option 1BMP180 Digital Barometric Pressure Sensor Module for Arduino – I2C Interface₹33
  • Option 2Elecrow Crowtail BMP180 Barometer Module – I2C Interface₹289
  • Option 3BMP180 Barometric Pressure & Temperature Sensor – White Shell, Cotton Core, 1m Cable w/ Card Holder₹369
01

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.

02

BMP180 pressure sensor pinout

The pins on the BMP180 pressure sensor and what each one does.

PinFunction
VIN3.3 to 5 V (module)
GNDGround
SCLI2C clock
SDAI2C data
3.3V (some boards)Regulated 3.3 V output, not an input
PinFunction
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
03

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 pinArduino UnoESP32
VCC5V (or 3.3V)3V3
GNDGNDGND
SDAA4GPIO 21
SCLA5GPIO 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
04

Example code

The BMP180 is register-compatible with the BMP085, so use the Adafruit BMP085 library.

Pressure, temperature and altitude · Arduino C++Verify & upload in Electrolark
#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);
}
05

Setup and tuning

Altitude

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.

Airflow and light

cover the sensor with a bit of foam to block drafts; strong light can also affect the reading.

Temperature reading

it measures the board, not the room; the AHT20 or DHT22 is better for room temperature.

Weather trends

a fall of 2 hPa or more in three hours often means unsettled weather.

06

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
07

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

Try it: Pressure converter calculator

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

09

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

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

  • BMP180 Digital Barometric Pressure Sensor Module for Arduino – I2C Interface
    ₹33View
  • Elecrow Crowtail BMP180 Barometer Module – I2C Interface
    ₹289View
  • BMP180 Barometric Pressure & Temperature Sensor – White Shell, Cotton Core, 1m Cable w/ Card Holder
    ₹369View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • 16×2 LCD with I2C (RG1602A)
    ₹179View
Shop Barometric, Atmospheric & Altitude Sensors

Calculators

Pressure converter 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: 10 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourBMP180 pressure and weather watcherView projectBeginner · 1 hourLow-pressure storm watchView projectBeginner · 1–2 hoursWi-Fi barometer stationView project
Browse all 10 projects

Keep learning

ComparisonBeginnerBarometric Pressure SensorsBarometric pressure sensors measure air pressure, from which you can calculate altitude or track weather.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

  • BMP180 digital pressure sensor datasheet (Bosch Sensortec)
  • Adafruit BMP085 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 BMP180 pressure sensor isBMP180 pressure sensor pinoutWiring the BMP180 pressure sensorExample 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 guide1 item · ₹33

BMP180 Digital Barometric Pressure Sensor Module for Arduino – I2C Interface

Run itChange the inputs and watch the output
Serial monitor9600 baud
27.50 C  907.46 hPa  920.54 m

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