Fig 1. shows the Wireless Sensor Network architecture that is applied in environmental monitoring which contains sensor
nodes, user and sink node. Sensor nodes will communicate with each other and transmit the processed data to sink node
over a wireless communication. Sink node collects data from all the nodes, and transmits the analyzed data to user via
Internet [2].