@jbynorth95 - You should start your own topic with the subject title "expected declaration before '}' token" In your new topic, post your sketch so the solution can be shown to you.
Please edit your post, select all code and click the <CODE/> button. Next save your post.
Code tags make your code easier to read, easier to copy and the forum software will display it correctly.
If the code you presented is the full code, I suggest that you start from scratch; possibly even by starting to learn a bit about the coding in the IDE. You're missing e.g. a setup function, a #include does not go in a function (loop()) and possibly some other things. There is also a closing } missing.
I suggest that you have a look at the examples that come with the library that you use.
That is incorrect. Please post your code in code tags
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
where is the setup() function ?
why does the loop opens before the #include ?
Are brackets matching ? indent the code...
you seriously need to read How to get the best out of this forum and then post accordingly (including code with code tags and necessary documentation for your ask like your exact circuit and power supply, links to components etc).
It looks like your original code document was an HTML page which uses column formatting that puts code like this out of order... for example... your "code" has "loop()" at the very top, with configuration information inside "loop()" and is missing the "setup()" function. Would you show the source of the original code?