Thanks a lot @Gordon and @Wilberforce. I have tried the new code. Good news is that I no longer get "Guru Meditation error", but I get data like below.

I understand that DHT11 now works for @Gustav on ESP32. There is as much time that you guys can spend on this, I have read that DHT11 is not the best sensor as well. I am pretty sure this works flawlessly on the official boards. I'll try to get myself one.