Wireless Sensor Networks (WSNs) are being used in many applications ranging from target surveillance in battle fields to intelligent home networking. From the recent applications, in which the WSNs are used, we can find the border surveillance applications. The first aim of this class of applications is to monitor a country border and detect the presence of the intruders near this border line. In this paper, we propose a global framework based on WSNs to design such applications. Then, we investigate the architectural issues needed to ensure good detection and tracking of the targets. We also propose a deployment strategy of nodes and the routing technique used to transmit the data through the network nodes.