A low cost wireless sensor node for building monitoring