avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.

Make sure that no other program running on your computer has COM3 open. The culprit is likely the software used to control your 3D printer.

If you have verified that no other program has the port open, then try restarting your computer. Sometimes COM ports will get stuck open and the restart fixes that.