DHT timeout error depending on power source

Hi,

I would appreciate some help on the following issue that is 100% reproducible with two DHT libraries and several power sources:

regardless of which of the two DHT libraries I use and regardless of which USB power adapters I use I always get "dht timeout waiting for start signal low pulse" error (or equivalent) if I'm not using computer as power source.

But I have no issues if powered from my PC or from RasPi.

Some additional info:

I'm adding the sketch.

Thank you!

Cheers, G

DHT_ESP32_example.ino (6.86 KB)

I cannot find the used sketch in your post.

Missing a clear schematic as well.