move sensors list creation to a separate fct