moved sensor code to library file