I. Introduction
Wireless Sensor Networks (WSN) are a collection of small sensor devices connected to each other through short distance wireless links. These networks usually function as Personal Area Networks (PAN), Local Area Networks (LAN), Metropolitan Area Networks (MAN) or Mobile Area Networks (MANET), and may contain from tens to thousands of nodes.