Hello. My final year project for my bachelors degree is creating an energy efficient routing protocol for WSN. I decided to work on LEACH as I had hoped that I would find more documentations for this code. I added a few minor changes in a code I found for LEACH and I was hoping on improving it by creating an algorithm that enabled me to elect the cluster head by calculating the threshold value of the nodes in the network rather than by simple election of nodes as cluster heads because of round circulation.
What I'm saying is that it is extremely difficult to adapt my code according to threshold requirements. Could anyone help me out if I provided my code for LEACH?