 
 // handles message arrived on subscribed topic(s)
 void callback(char* topic, byte* payload, unsigned int length) {
-
-//  int i = 0;
-//
-//  //Serial.println("Message arrived:  topic: " + String(topic));
-//  //Serial.println("Length: " + String(length,DEC));
-//
-//  // create character buffer with ending null terminator (string)
-//  for (i = 0; i < length; i++) {
-//    message_buff[i] = payload[i];
-//  }
-//  message_buff[i] = '\0';
-//
-//  String msgString = String(message_buff);
-//
-//  //Serial.println("Payload: " + msgString);
-//
-//  if (msgString.equals("{\"command\":{\"lightmode\": \"OFF\"}}")) {
-//    senseMode = MODE_OFF;
-//  } else if (msgString.equals("{\"command\":{\"lightmode\": \"ON\"}}")) {
-//    senseMode = MODE_ON;
-//  } else if (msgString.equals("{\"command\":{\"lightmode\": \"SENSE\"}}")) {
-//    senseMode = MODE_SENSE;
-//  }
-}
-
+}
+

  Serial.println("DEBUG :: Sending temp ");
  Serial.println(temp);
  //"io.m2m/arduino/lightsensor"
  client.publish("arduino-weather-exchange", "temp");
}


void printWifiData() {
  // print your WiFi shield's IP address:

if (!client.connected()) {
    delay(1000);
    Serial.println("INFO :: Connecting to RabbitMQ");
    if (client.connect("ArduinoClient", user, pwd)) {
      Serial.println("DEBUG :: About to sent message......");
      client.publish("arduino-weather-queue","Sensor1,10.0,11.3");
      Serial.println("INFO :: Connected to RabbitMQ");
    } else {
      Serial.println("ERROR :: Failed to Connect to RabbitMQ");
