Combining Code from BMP180 and Thermistor LCD Output

Print Friendly, PDF & Email
After a lot of trial and error for the order that the 2 code pieces display their resp. data to LCD and serial monitor, I got both sensors to print to the LCD while keeping the BMP180 serial display:

This had to be space compressed and abbreviated etc. to fit on the LCD, but can be seen that the print line has to be followed immediately by the respective sensor read line to get the next data value e.g .(bmp.readTemperature(), from the unit to follow the LCD text:
Serial.print(“TempBMP(C)= “);
lcd.print(“TempBMP(C)= “);
In the SFE180 example code, altitude is set as the constant:
SFE_BMP180 pressure;
#define ALTITUDE 1540 // Altitude of SparkFun’s HQ in Boulder, CO. in meters so maybe this an be added…

In this code, you can add your current pressure, but still gives wrong Alt…?:
This is an example for the BMP085 Barometric Pressure & Temp Sensor
Designed specifically to work with the Adafruit BMP085 Breakout
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