@calaard, your topic has been moved to a more suitable location on the forum. InstallationandTroubleshooting is not for problems with your project; see About the Installation & Troubleshooting category.
Please read https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966and apply what you've read/learned about code tags to the code in your post.