 const char subrpi[]     = "raspberrypi/data";
 const char subtopic_0[] = "esp8266/arduino/s03"; // lcd temp
 const char subtopic_1[] = "esp8266/arduino/s07"; // power
-const char subtopic_2[] = "esp8266/arduino/s06"; // nemo scale
 const char subtopic_3[] = "radio/test/2";        //Outside temp
 const char subtopic_4[] = "raspberrypi/doorpir";
-
-const char* substopic[6] = { subrpi, subtopic_0, subtopic_1, subtopic_2, subtopic_3, subtopic_4 } ;
+const char subtopic_5[] = "raspberrypi/data2";
+
+const char* substopic[6] = { subrpi, subtopic_0, subtopic_1, subtopic_3, subtopic_4, subtopic_5 } ;
 
 unsigned int localPort = 12390;
 const int timeZone = 9;

WiFiClient wifiClient;
PubSubClient client(mqtt_server, 1883, callback, wifiClient);
WiFiUDP udp;

long lastReconnectAttempt = 0;
volatile bool msgcallback;

//
volatile uint32_t lastTime;

// https://omerk.github.io/lcdchargen/
byte termometru[8]      = { B00100, B01010, B01010, B01110, B01110, B11111, B11111, B01110 };
byte picatura[8]        = { B00100, B00100, B01010, B01010, B10001, B10001, B10001, B01110 };
byte pirfill[8]         = { B00111, B00111, B00111, B00111, B00111, B00111, B00111, B00111 };
byte powericon[8]       = { B11111, B11011, B10001, B11011, B11111, B11000, B11000, B11000 };
byte nemoicon[8]        = { B11011, B11011, B00100, B11111, B10101, B11111, B01010, B11011 };
byte customCharB[8]     = { B11110, B10001, B10001, B11110, B11110, B10001, B10001, B11110 };
byte customCharfill[8]  = { B10101, B01010, B10001, B00100, B00100, B10001, B01010, B10101 };

void wifi_connect() {
  /*
    wifi_set_phy_mode(PHY_MODE_11N);
    system_phy_set_max_tpw(10);
  */

  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  WiFi.hostname("esp-solar");

  int Attempt = 0;
  while (WiFi.status() != WL_CONNECTED) {
    delay(100);
    Attempt++;
    if (Attempt == 300) {
      ESP.restart();
    }
  }
}

boolean reconnect() {

  }

  if ( receivedtopic == substopic[3] ) {
    if (root.containsKey("data1")) {
      solar_data.Temperature2 = root["data1"];
    }
  }

  if ( receivedtopic == substopic[4] ) {
    if (root.containsKey("DOORPIR")) {
      if (solar_data.pir != root["DOORPIR"]) {
        solar_data.pir  = int(root["DOORPIR"]);
      }
    }
  }

  if ( receivedtopic == substopic[5] ) {
    if (root.containsKey("data1")) {
      solar_data.data3 = root["data1"];
    }
    if (root.containsKey("data2")) {
      solar_data.data4 = root["data2"];
    }
    lastTime2 = millis();
  }

  msgcallback = !msgcallback;
