Hi,
Somehow, your example has 2 sets of setup/loop functions. This would explain the error messages you have received. Please remove the code inside the red rectangle in the following image:
Sincerely,