ESP8266 with DHT11 does not serial print values

Here is the solution:
1. The following setup (Fig-1) does not works; where VCC-pin of the sensor is connected with 3.3V-poin of ESP8266 based NodemCU. It shows: 0 and 0 for Temp and Humidity.

nodeDht
Figure-1:

2. The following setup (Fig-2) works; where the VCC-point of DHT-11 is connected to a seperate 5V supply.


Figure-2:

3. Serial Monitor Output under Setup of Fig-2.

Humidity is = 26
Temperature is = 31
===========================
Humidity is = 26
Temperature is = 31
===========================
Humidity is = 26
Temperature is = 31
===========================
Humidity is = 26
Temperature is = 31
===========================