I am trying to create a library for an EEG sensor and was wondering how difficult it is
If you have a set of functions that read data from the sensor, then putting them into a class, defined in a library, is easy. If you don't, then you do not have any basis for building a library, so building the library will be a lot more difficult.
All I need is for the library read different brainwave values from a circuit