DHT11 with external power

Hi, my DHT11 temp sensor works properly if my arduino is powered by a usb connected to a pc. But if it is powered by other external power the reading of DHT11 bounce.
How can I fix this problem? This problem doesn't occur on my other sensors like photocell.

Sounds like either your alternate power is not stable, or you have shared the ground wire from Arduino to both
supply and sensor - keep sensor ground wiring separate from any ground wiring that takes significant current.

External power should be at least 7Volts and max 12V

I tried using a DC 9V adapter and a 5V phone power bank. But both give me the unstable DHT11 readings.

Can you post a drawing how you connected everything?