Defining sensor app's tasks.