Add ability to pause/restart sensors when app is not visible
Format source: Fix variable name