updated calls to getSensor in tasks