Recieving zero on the Serial Monitor

I keep receiving zero on the serial monitor, I can't figure out why. Help please!

//Libraries
#include <dht.h>
dht DHT;
//Constants
#define DHT11_PIN 2 // DHT 22 (AM2302) - what pin we're connected to
//Variables
String TextForSms ;
String hum = " Humidity: %"; //Stores humidity value
String temp = " Temperature"; //Stores temperature value
String sign = " *C";
char fromc;
void setup()
{
** Serial.begin(9600);**
}
void loop()
{
** delay(2000); //Delay 2 sec.**
** //Read data and store it to variables hum and temp**
** int hum = DHT.humidity;**
** int temp= DHT.temperature;**
** //Print temp and humidity values to serial monitor**

** if (isnan(hum) || isnan(temp)) {**
** Serial.println("Failed to read from DHT sensor!");**
** return;**
** }**

** TextForSms = TextForSms + temp + "," + hum + ","; // sorry comma**
Serial.println(TextForSms);
** TextForSms = "";**
** delay(1000); **
}

Post a link to where you got the DHT library from. Please use the chain links icon on the forum toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

This is not nice but may not be your problem:

String TextForSms ;

You should initialise the Sting explicitly to "".

@OP

Check that you are missing the following vital instruction in your sketch.

DHT.read11(DHT11_PIN);

sm29.png

sm29.png