WSN -  My algorithm