Sensor networks are normally deployed in areas of interest such as home appliances, healthcare applications, environment monitoring, etc. in order to collect information about events of these areas. Algorithms, implemented for the problem of ad hoc wireless sensors network, are simulated on Matlab platform, with a step-by-step evaluations of a case study. The paper is to maximize the lifetimes of sensors by sharing sensors subsets, which cover a number of targeted zones, according to their minimum coverage failure probabilities. Different sensor subsets are activated according to their coverage failure probabilities, as well as a minimum specified value of coverage failure probability.