NodeMCU doesn't send any data

I use this code

void ubidotsDataUpload(){
  float temp = dht.readTemperature();
  Serial.print("Ubidots temperature: ");
  Serial.println(temp);
  client.add("Temp", temp);
  client.sendAll(true);
  delay(2000);
}

and it works well for some days. I stop my nodeMCU 1.0 for some days for make other things and when I upload the SAME sketch to the nodeMCU it doesn’t work anymore. I try also with the example but nothing happens. And it isn’t a DHT problem because I try also to use a static number (like float temp = 2;) but it doesn’t work. The connection to the internet works well because in the same sketch I perform some other wifi function (like check the weather) and works well. So what is the problem?
Thanks!

could you please paste all of you code please?

Best regards,
Metavix

Now seem work, but I want to understand the problem (but I think that the problem was Ubidots not my code). I upload it because it is a bit long.
WeatherStationMaster.ino (9.5 KB)