   float TemperatureSum = tempRead / 16;
 
   return TemperatureSum;
-
-}
-*/
-
-float get_temperature(uint8_t *address) {
-  byte data[12];
-  int x;
-  sensor_bus.reset();
-  sensor_bus.select(address);
-  sensor_bus.write(0x44, 1);
-
-  sensor_bus.reset();
-  sensor_bus.select(address);
-  sensor_bus.write(0xBE, 1);
-
-  for (x = 0; x < 9; x++)
-    data[x] = sensor_bus.read();
-
-  int tr = data[0];
-  if (data[1] > 0x80) {
-    tr = !tr + 1;
-    tr = tr * -1;
-  }
-  int cpc = data[7];
-  int cr = data[6];
-
-  tr = tr >> 1;
-
-  float temperature = tr - (float)0.25 + (cpc - cr) / (float)cpc;
-
-  return temperature;
 }
 
 /************************************

  Serial.println("DHT22found");

  // Turn on the fan
  digitalWrite(fan_pin, HIGH);
  Serial.println("Fan turned on");

  int x, y, c = 0;
  Serial.println("Starting to look for sensors...");
  for (x = 0; x < num_ds18; x++) {
    if (sensor_bus.search(sensors_address[x]))

  }
}

float get_temperature(uint8_t *addr) {
  byte data[12];

  sensor_bus.reset();
  sensor_bus.select(addr);
  sensor_bus.write(0x44, 1); // start conversion, with parasite power on at the end

  byte present = sensor_bus.reset();
  sensor_bus.select(addr);
  sensor_bus.write(0xBE); // Read Scratchpad

  for (int i = 0; i < 9; i++) { // we need 9 bytes
    data[i] = sensor_bus.read();
  }

  sensor_bus.reset_search();

  byte MSB = data[1];
  byte LSB = data[0];
