An error occurred while uploading the sketch avrdude: ser_open(): can't open device "\\.\COM6": Access is denied. code example
Example: An error occurred while uploading the sketch avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied
sudo chmod 777 /dev/ttyUSB0