I was trying to switch Unos because I have multiple projects. Everything was working fine until I switched to an Uno I had lying around. It compiles fine, but I get this error message when I try to upload. The correct board and port are selected. I also tried switching my Serial.begin() from 9600 to 115200 with no change.
Arduino: 1.8.15 (Windows 10), TD: 1.54, Board: "Arduino Uno" Sketch uses 1480 bytes (4%) of program storage space. Maximum is 32256 bytes. Global variables use 194 bytes (9%) of dynamic memory, leaving 1854 bytes for local variables. Maximum is 2048 bytes. C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\ABIGAI~1\AppData\Local\Temp\arduino_build_347694/sketch_jul26a.ino.hex:i An error occurred while uploading the sketch avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf" Using Port : COM8 Using Programmer : arduino Overriding Baud Rate : 115200 This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.