adding function to update all tree-nodes
edit function to remove old Sensor Objects