 #endif
 
 char* topic = "esp8266/arduino/s03";
-char* subtopic = "esp8266/#";
+char* subtopic = "#";
 char* hellotopic = "HELLO";
 
 LiquidCrystal_I2C lcd(0x27, 20, 4);


void displaydustDensity()
{

  lcd.setCursor(3, 1);   
  if ( 0   < dustDensity =< 0.1 ) {
    lcd.write(4);
    lcd.print("    ");
  }
  if ( 0.1 < dustDensity =< 0.2 ) {
    lcd.write(4);
    lcd.write(4);
    lcd.print("   ");
  }
  if ( 0.2 < dustDensity =< 0.3 ) {
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
    lcd.print("  ");
  }
  if ( 0.3 < dustDensity =< 0.4 ) {
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
    lcd.print(" ");
  }
  if ( 0.4 < dustDensity =< 0.5 ) {
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
    lcd.write(4);
  }

}

void requestSharp()

};


byte pirfill[8] = //icon for dustDensity droplet
{
  B00111,
  B00111,
  B00111,
  B00111,
  B00111,
  B00111,
  B00111,
  B00111,
};

byte powericon[8] = //icon for dustDensity droplet
{
  B11000,
  B00110,
  B00011,
  B01100,
  B11000,
  B00110,
  B00011,
  B01100,
};



PubSubClient client(wifiClient, server);

void callback(const MQTT::Publish& pub) {
  if (DEBUG_PRINT) {
    Serial.print(pub.topic());
    Serial.print(" => ");
    Serial.println(pub.payload_string());
  }

  String receivedtopic = pub.topic();
  parseMqttMsg(pub.payload_string(), receivedtopic);
}

void parseMqttMsg(String payload, String receivedtopic) {

  StaticJsonBuffer<300> jsonBuffer;

  char json[] =
    "{\"Humidity\":38.10,\"Temperature\":27.70,\"DS18B20\":28.31,\"SENSORTEMP\":31.31,\"PIRSTATUS\":1}";

  payload.toCharArray(json, 200);

