 // Setup a feed called 'photocell' for publishing.
 // Notice MQTT paths for AIO follow the form: <username>/feeds/<feedname>
 Adafruit_MQTT_Publish temp_topic = Adafruit_MQTT_Publish(&mqtt, AIO_USERNAME "/feeds/temp");
+Adafruit_MQTT_Publish humid_topic = Adafruit_MQTT_Publish(&mqtt, AIO_USERNAME "/feeds/humid");
 /****************************** Subscriptions*********************************/
 // Setup a feed called 'photocell' for subscribing to changes.
 Adafruit_MQTT_Subscribe temp_subscription = Adafruit_MQTT_Subscribe(&mqtt, AIO_USERNAME "/feeds/temp");
+Adafruit_MQTT_Subscribe humid_subscription = Adafruit_MQTT_Subscribe(&mqtt, AIO_USERNAME "/feeds/humid");
 
 /***************************  MQTT Conn   ************************************/
 

  Serial.print(temp_c);
  Serial.print("...");
  if (! temp_topic.publish(temp_c)) {
    Serial.println(F("Failed"));
  } else {
    Serial.println(F("OK!"));


  // Setup MQTT subscription for onoff feed.
  mqtt.subscribe(&temp_subscription);
  delay(1000);
  mqtt.subscribe(&humid_subscription);
}

//uint32_t x=0;    // Mock data
