 
 
 void setup() {
-#ifdef DEBUG
-  Serial.begin(57600);
-#endif
-  DEBUG_PRINT("Initializing");
+  if (DEBUG){
+    Serial.begin(57600);
+  }
+  debug_print("Initializing");
 
   rf12_initialize(NODE_ID, RF12_915MHZ, NETGROUP);
 
-  pinMode(DIO4, INPUT_PULLUP);
+  // Do this so the initialize the thermometer (which starts at 0.00)
+  float _unused = get_temperature(temp_dev1);
+  delay(200);
+  
+  pinMode(DIO4, INPUT_PULLUP);  
 }
 
 

    batt_loop_count++;
  }

#ifdef DEBUG
  if (door_status_4 == DOOR_OPEN) {
    DEBUG_PRINT("Door open");
  }
  else {
    DEBUG_PRINT("Door closed");
  }
#endif

  tempc = get_temperature(temp_dev1);
  DEBUG_PRINT(tempc);

  payload[0] = has_lowbat;
  payload[1] = int(tempc * 100);



// user settings
#define DEBUG false         // Set false to turn off all debugging
const int JEELINK_ID = 1;   // Jeelink is id 1 (or 0 to broadcast)
const int NETGROUP = 100;   // Netgroup everyone is on
const int NODE_ID = 2;      // id of THIS node
