 
 // DHT 22 sensor
 #define DHTPIN 2
-#define DHTTYPE DHT22 
+#define DHTTYPE DHT22
 
 // WiFi parameters
 #define WLAN_SSID       "<your_ssid>"
-#define WLAN_PASS       "<your_pass"
+#define WLAN_PASS       "<your_wifi_password>"
 
 // Adafruit IO
-#define AIO_USERNAME    "<adafruit_username>"
-#define AIO_KEY         "<adafruit_aio_key>"
-#define TEMP_FEED_PATH  "<username>/feeds/temperature"
-#define HUMIDITY_FEED_PATH "<username>/feeds/humidity"
+#define TEMP_FEED_PATH  "sensors/attic/temperature"
+#define HUMIDITY_FEED_PATH "sensors/attic/humidity"
 
 // LEDs
 #define BLUE_LED 4
 #define GREEN_LED 5
 
 // DHT sensor
-DHT dht(DHTPIN, DHTTYPE, 15);
+DHT dht(DHTPIN, DHTTYPE);
 
 // Functions
 void connect();
 
 // Create an ESP8266 WiFiClient class to connect to the MQTT server.
-WiFiClientSecure client;
+WiFiClient client;
 PubSubClient mqttclient(client);
 
 

  Serial.println(F("WiFi connected"));
  Serial.println(F("IP address: "));
  Serial.println(WiFi.localIP());
  delay(3000);

  // connect to adafruit io
  mqttclient.setServer("io.adafruit.com", 8883);
  mqttclient.setCallback(callback);  
  connect();

}

  mqttclient.publish(TEMP_FEED_PATH, String(temperature_data).c_str(), true);
  Serial.print("Temperature published: ");
  Serial.print(temperature_data);
  delay(1000);
  mqttclient.publish(HUMIDITY_FEED_PATH, String(humidity_data).c_str(), true);
  Serial.print("\nHumidity published: ");
  Serial.print(humidity_data);
