looping through sensors