 
 void loop() {
   Serial.println("DEBUG :: loop()");
-  float tempVar = readTemperature();
-  float humVar = getDHT11HumidityReadings();
-  char temp[10];
-  char humidity[10];
-  dtostrf(tempVar, 2, 2, temp);
-  dtostrf(humVar, 2, 2, humidity);
+  String temp = readTemperature();
   Serial.print("DEBUG :: Temp value return is : ");
   Serial.println(temp);
+  String humidity = getDHT11HumidityReadings();
   Serial.print("DEBUG :: Humidity value return is : ");
   Serial.println(humidity);
+  checkTiltState() ;
   publishTempHumMsg(temp, humidity);
   // MQTT client loop processing
   client.loop();
-}
-
-void checkTiltState() {
-  tiltState = digitalRead(tiltSensorPin);
-  Serial.print("INFO :: [1 -> On, 0 -> Off] :: Tilt State is : ");
-  Serial.println(tiltState);
-  if (tiltState != previousTiltState) {
-    previousTiltState = tiltState;
-    String tiltMsg = getSensorId();
-    tiltMsg.concat(",");
-    tiltMsg.concat(tiltState);
-//    tiltMsg.concat(",");
-//    tiltMsg.concat(time);
-    char message_buff[30];
-    tiltMsg.toCharArray(message_buff, tiltMsg.length()+1);
-    //send tilt state to the tilt queue
-    client.publish("arduino-tilt-exchange", message_buff);
-  }
-  
 }
 
 void connectToMQTT() {

    } else {
      Serial.println("ERROR :: Failed to Connect to RabbitMQ");
    }
}

void publishTempHumMsg(String temp, String humidity) {

  }
  delay(1000);
  
  char temp[10];
  dtostrf(temperature, 2, 2, temp);
  return temp;
}

void connectToWifi() {
