   digitalWrite(led_pin, led_value);
 }
 
-void fan_on() {
+void turn_fan_on() {
   digitalWrite(fan_pin, HIGH);
+  Serial.println("Fan turned on");
 }
 
-void fan_off() {
+void turn_fan_off() {
   digitalWrite(fan_pin, LOW);
+  Serial.println("Fan turned off");
 }

  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];
