#!/usr/bin/python
#This code works with BMP180 and BMP085
import Adafruit_BMP.BMP085 as BMP085 # Imports the BMP library

# Create an 'object' containing the BMP180 data
sensor = BMP085.BMP085()
print ('Temp = {0:0.2f} *C'.format(sensor.read_temperature())) # Temperature in Celcius
print ('Pressure = {0:0.2f} Pa'.format(sensor.read_pressure())) # The local pressure
print ('Altitude = {0:0.2f} m'.format(sensor.read_altitude())) # The current altitude
print ('Sealevel Pressure = {0:0.2f} Pa'.format(sensor.read_sealevel_pressure())) # The sea-level pressure
