   delay(0.01);
   return analogRead(pin);
   
+}
+
+boolean bmp180Temperature(double &T) {
+  char status;
+  status = pressure.startTemperature();
+  if (status != 0) {
+    delay(status);
+    status = pressure.getTemperature(T);
+    if(status != 0) return true;
+  }
+  return false;
+}
+
+boolean bmp180Pressure(double &P) {
+  double T, absP;
+  char status;
+  if(bmp180Temperature(T)) {
+    Serial.println(T);
+    delay(500);
+    status = pressure.startPressure(3);
+    if (status != 0) {
+        delay(status);
+        status = pressure.getPressure(absP,T);
+        if (status != 0) {
+          P = pressure.sealevel(absP,ALTITUDE);
+          return true;
+        }
+      }
+  }
+  return false;
 }
 
 float lm35(int pin) {

}

void setup() {
  Serial.begin(57600); // set the baud rate
  for (int i = 0; i < numSen; i++) {
    pinMode(pins[i], INPUT);
    update(types[i],pins[i]);
  }  
}

void loop() {

  String inp = readCommand();
  if (inp == "") {
  } else if (inp == "dump") {
    for (int i = 0; i < count(updateTimes); i++) {
      String com = String(i) + " " + String(types[i]) + " " + String(updateTimes[i]) + " " + String(pins[i]);
      sendCommand("dump_pin", com);
    }
