error handling implemented
library loader
class for sensor