Nowadays, wireless sensor network (WSN) systems are widely used in various applications designed to monitor real world physical or environmental phenomena, in more than a few disciplines such as healthcare and habitat monitoring. The position of the sensor nodes significantly affects the accuracy of the information collected, which decides the quality of service offered by the application system. Hence, the deployment strategy is one of the key issues to be solved in WSN. Generally, to reach the end for which the WSN system is designed, full coverage and connectivity must be provided, so each and every event can be detected, and then, guarantee that all the collected information is transmitted to the desired base station for processing and analyzing. When the deployment is not optimally achieved, coverage holes and serious coverage overlapping can occur, which creates uncovered areas and undetected application key events, leading to system mission failure. In this paper, we propose a recovery method based on a gradient algorithm combined with a clustering technique in order to detect the redundant sensor nodes in the whole WSN system and relocates them to heal the identified coverage holes.