 float get_ds18b20_temp (uint8_t *address);
 
 // Setup DHT22
-DHT dht(DHTPIN, DHTTYPE);
+DHT dht(dht_pin, DHTTYPE);
 
 void setup() {
   Serial.begin(9600);
   Serial.flush();
 
-  pinMode(led_pin, OUTPUT);
+  pinMode(LED_BUILTIN, OUTPUT);
   pinMode(ds18_01_pin, OUTPUT);
   pinMode(fan_pin, OUTPUT);
 


#include <DHT.h>

#define DHTPIN 3 // DHT Temp & Humidity Pin
#define DHTTYPE DHT22   // DHT 22  (AM2302)

int ac_probe = 0;
int dc_probe = 1;

int led_pin = 13;
int led_value = LOW;

int fan_pin = 4;

int ds18_01_pin = 2;
const int num_ds18 = 3; // Number of DS18B20 Sensors
uint8_t sensors_address[num_ds18][8]; //here will store the sensors addresses for later use

// Temperature chip I/O


      switch(pin_num){
        case fan_pin:
        case LED_BUILTIN:
          digitalWrite(pin_num, pin_status);
          break;
      }
