   pinMode(SRF_SLEEP, INPUT);                // sleep the radio
   LLAP.sleep(WAKE_INT, RISING, false);      // sleep until woken on pin 2, no pullup (low power)
   pinMode(SRF_SLEEP, OUTPUT);               // wake the radio
-
+//  digitalWrite( TEMP_SENSOR_ENABLE, HIGH);  // power up temp sensor
+  
   // Determine if we need to send a battery voltage reading or a distance reading
   if( --batteryCountDown <= 0 ) {
     int mV = readVcc();

    batteryCountDown = BATTERY_READ_INTERVAL;
  } 
  else {
    // Distance reading
    uint16_t cm = getRange();
    // Send reading 5 times to make sure it gets through
    for(int n = 0; n<3; n++ ) {
      if( cm > 17 ) {
        LLAP.sendInt( "U", cm );
      } 

    if( rangevalue[i] < 645 && rangevalue[i] >= 15 ) i++;  // ensure no values out of range
    delay(10);                      // wait between samples
  }
  
  digitalWrite(SENSOR_ENABLE, LOW);

  isort(rangevalue,arraysize);        // sort samples
  uint16_t distance = mode(rangevalue,arraysize);  // get median 

  lastUncompDistance = distance;
  // Use temperature comprensation if temp sensor found
  if( tempSensorFound ) {
    //temperature = sensors.getTempC(temperatureSensor);
    sensors.requestTemperatures();
    temperature = sensors.getTempCByIndex(0);
    latestTemperature = temperature;
//  Serial.print("Uncomp Dist: ");
//  Serial.println(distance,DEC);
//  Serial.print("temperature: ");
