Hi @moates
welcome to the arduino-forum
You should post your code in so called
code-tags
Here is a tutorial that describes how you do it
Hi newcomer,
This thread wants to show you how you can speed-up getting helpful answers with small effort.
If you manage at least to post this way. You have the sympathy of the experienced users.
If you are willing to invest another 20 minutes these 20 minutes extra-time will save you a minimum of 200 minutes to finish your project.
always
post your full sketch. As a
code-section
from the very first to the very last line
A code-section has a small height => keeps your posting "short" but…
The error-message seems to be related to the upload-process after compiling.
Which Arduino-IDE are you using?
Arduino-IDE Version 1.18.19
or
Arduino-IDE 2.0.X?