Reimplement sensor polling into one task