Store values in library

If you want your object to be global, that is accessible from inside many functions, then you need to declare the instance in global scope, that is outside any function, conventionally at the top of the sketch.

Serial is a good example. It is declared globally, in the supporting Arduino code that you don't normally see. Then the setup() function can set the baud rate and every other function that calls Serial uses that same object with the same setting already stored.