“…The wireless Sensor network is a type of ad hoc networks, in it, the sensed data transferred to the sink or base station in multi-hop routing method through several sensors [3]. Ad-hoc network has no specific infrastructure nor centralization as in traditional network, also it is subject to topology change in the event of node move, node death or new node joins [4].WSNs applications ranging on wide and varied fields such as monitoring environment phenomena, target tracking and intrusion observation in the military, underwater searches, forests, health care, industrial machines, monitoring big structures like ships, aircraft, nuclear reactor, etc., and other applications [1].According to data transfer requirement, applications have been classified into: (i) event-driven in which data transmission start after a certain event, (ii) time-driven sensed data transmitted to the destination in a specific time and (iii) query-driven data transmitted after some request reached to the sensor [5].The most important investment of WSNs is the integration with IoT, this integration allows WSN to connect to the internet that facilitates the role of WSN in many applications. The most known applications used this integration are smart city and e-healthcare, what happens in it is accessing sensors' sensed data by the user via mobile or PCs connected to the internet [6].…”