import time
import Adafruit_CharLCD as LCD
import Adafruit_BMP.BMP085 as BMP085
# Raspberry Pi pin setup
sensor = BMP085.BMP085()
lcd_rs = 25
lcd_en = 24
lcd_d4 = 23
lcd_d5 = 17
lcd_d6 = 18
lcd_d7 = 22
lcd_backlight = 2
# Define LCD column and row size for 16x2 LCD.
lcd_columns = 16
lcd_rows = 2
while True:
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
lcd.message(“Temp={0:0.1f}*C Pressure ={1:0.1f} %".format(sensor.read_temperature(), sensor.read_pressure()))