thanks a lot! I searched for hours for the origin of a similar issue (no valid output reading from the DHT22 using NodeMCU on pin 4). Switching to pin 2 solved the problem.
The part I don't understand is: When the DHT22 was connected to pin 4 I got a valid ouput, if I disconnected and re-connected again either the 3.3V or ground connection to the DHT22 sensor. Has someone an explanation for me?
In any case: thanks a lot for sharing your knowledge and helping me to fix it.
Best wishes
sonicx