sensors.Root object added

code refactored