most of these "tasks" you switch an digitalPin to high or low. All sensor readings and processing are in extra functions