ERROR "Timed out waiting for packet content" ESP32

Hi! I'm using ESP32 with DHT22 sensor, and I have this problem when I try to upload the code. I checked the connections, pins, code, libraries.. and I didn't find any error. I upload the code when ESP32 is in programming mode, so that's not the problem. I don't know what to check next.

Does anyone have any idea of what's going on here?

I attach the code.
(Sorry for my English)


Just press the boot button while *Connecting........

PD: Next time use `` for posting the code

Sorry, I will use it next time.
Thanks for the answer.

Even pressing boot button doesn't works, I receive the same error.

If you checked all errors related guides maybe you have a hardware problem. I jus had to return last week an ESP32 from AZdelivery because I was getting a similar error.

I'm gonna get another one, there's no other error that I could find. Thanks for helping!