fixed error in not finding sensors