In order to solve the problem that random deployment of wireless sensor networks cannot solve the optimal coverage control of discrete targets with different importance, an optimal deterministic algorithm based on the target weight is designed by applying the target overlap and greedy algorithm. By using perceived probability model of sensor node as an object of study, the overlap of the targets is determined through the targets’weights. The optimal node deployment range is selected by employing the greedy algorithm, and the optimal deployment location of sensor nodes is decided by calculating the minimum value of indicator function. Simulation results show that the proposed algorithm can achieve a kind of optimal monitoring coverage of discrete targets and ensure the connectivity of network constructed by monitoring sensor nodes.