Takes sensor list from file and fixed some bugs