refactoring of predicates in sensors in PredicateProvider