In MainActivity I listed what needs to be done
Created a Background service class
Now sensor