 
 	/* Display the results (barometric pressure is measure in hPa) */
 	if (event.pressure) {
+		config.pressureMb = event.pressure;  // hPa
 		config.pressureInches = hPa2inHg(event.pressure);
 		float temperature;
 		bmp.getTemperature(&temperature);

#include <Arduino.h>
#include <SparkfunSerial7SD.h>
#include <SimpleTimer.h>

#define DHTTYPE DHT22   // DHT 22  (AM2302)

#include <DHT.h>

const uint8_t pinDHT = 2, pin7Segment = 7;
DHT dht(pinDHT, DHTTYPE);
SparkfunSerial7SD SevenSegment(pin7Segment);

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BMP085_U.h>

Adafruit_BMP085_Unified bmp = Adafruit_BMP085_Unified(10085);
SimpleTimer timer(1);

typedef struct configStruct  {
	uint16_t pause;
	float temperatureDHTinF;
	float temperatureBMPinF;
	float pressureInches;
	float humidityPercent;
} configType;

char buffer[10];
configType config = { 3000 };


void readBMP(int timerId) {
	sensors_event_t event;

	config.temperatureDHTinF = f;
}

/**********************************************************************************
 *
 * Arduino Callbacks
 */
void setup() {
	Serial.begin(9600); //Setup the debug terminal at regular 9600bps

	dht.begin();
	bmp.begin();

	lcd.init();
	lcd.backlight();
	lcd.setCursor(0, 0);

	memset(&display, 0x0, sizeof(displayType));
	memset(&hourlyPressure, 0x0, sizeof(hourlyPressure)*sizeof(uint16_t));

	Serial.print("Resetting memory structures.");
	Serial.println(sizeof(displayType));
	Serial.println(sizeof(hourlyPressure) * sizeof(uint16_t));

	timer.setInterval(2000, &readBMP);
	delay(500);
	timer.setInterval(2000, &readDHT);
	delay(500);
	timer.setInterval(1000, &displayReadings);
}

void loop() {
	timer.run();
	delay(config.pause);
}
