     uint16_t newDist = tof * (( 20.05 * sqrt( temperature + 273.15))/2);
     distance = newDist;
   }
-//  digitalWrite(TEMP_SENSOR_ENABLE, LOW);
-
   return distance; 
 }
 

  {
    if (!enterCommandMode()) return 1;
  }
  //if (!sendCommand("ATSDDBBA0")) return 2;	// 15 minutes
  //if (!sendCommand("ATSD927C0")) return 2;	// 10 minutes
  if (!sendCommand("ATSD493E0")) return 2;	// 5 minutes

  }
}

// Get the range in cm. Need to enable sensor first then wait briefly for it to power up
// Also request temperture sensor, if previously detected, to take a reading.
// Disable sensor after use.
uint16_t getRange() {
  int16_t pulse;  // number of pulses from sensor
