Wireless sensor networks: A survey on the state of the art and the 802.15.4 and ZigBee standards