refactor for multiple sensor "node"