Intelligent sensor node for building monitoring and control applications