This is the error
Sketch uses 921917 bytes (70%) of program storage space. Maximum is 1310720 bytes.
Global variables use 43600 bytes (13%) of dynamic memory, leaving 284080 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM7
Connecting.....................................An error occurred while uploading the sketch
.
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html