Subscribe to Arduino Academy and start learning today for FREE!

ICStation 5v BMP-085 Pressure / Temperature Sensor

ICStation sent us a BMP-085 Barometric Pressure Sensor. This sensor is 5v friendly, and works with the common BMP-085 libraries that are available. We are using the same library and example code we used with the Adafruit BMP-180. See the Arduino Web Based Weather Server!

#include “Wire.h”
#include “Adafruit_BMP085.h”

This is an example for the BMP085 Barometric Pressure & Temp Sensor

Become the Maker you were born to be. Try Arduino Academy for FREE!

These displays use I2C to communicate, 2 pins are required to
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution

// Connect VCC of the BMP085 sensor to 5.0V
// Connect GND to Ground
// Connect SCL to i2c clock – on ‘168/’328 Arduino Uno/Duemilanove/etc thats Analog 5
// Connect SDA to i2c data – on ‘168/’328 Arduino Uno/Duemilanove/etc thats Analog 4
// EOC is not used, it signifies an end of conversion
// XCLR is a reset pin, also not used here

Adafruit_BMP085 bmp;

void setup() {
if (!bmp.begin()) {
Serial.println(“Could not find a valid BMP085 sensor, check wiring!”);
while (1) {}

void loop() {
Serial.print(“Temperature = “);
Serial.println(” *C”);

Serial.print(“Pressure = “);
Serial.println(” Pa”);

// Calculate altitude assuming ‘standard’ barometric
// pressure of 1013.25 millibar = 101325 Pascal
Serial.print(“Altitude = “);
Serial.println(” meters”);

// you can get a more precise measurement of altitude
// if you know the current sea level pressure which will
// vary with weather and such. If it is 1015 millibars
// that is equal to 101500 Pascals.
Serial.print(“Real altitude = “);
Serial.println(” meters”);


Become the Maker you were born to be. Try Arduino Academy for FREE!

Notify of
Inline Feedbacks
View all comments


Would love your thoughts, please comment.x