In faulty node detection and recovery algorithm for WNS critical problems like fault tolerance created. Earlier fault tolerance mechanism consumes significant extra energy to detect and recover from the failure or having additional hardware and software resources. Lifetime of sensor node is enhanced because of using diffusion algorithm combined with the genetic algorithm. When some node get faulty in network then this algorithm is useful to avoid performance related data transfer. Wireless sensor networks are having tendency to fail of sensor, due to the energy depletion, failure of hardware's, conditions of network environment.