I'm getting NaN for readings on my DHT22 sensor when using 3v3 pin, but not 5v pin
Sometimes the problem is simply that you didn't properly solder the headers onto the Arduino. You should check to make sure that your solder joints are all good.