Unknown errors.

All those variables you defined inside setup aren't visible in any other function.
Move them out to global scope,