The files contain the code for the three protocols- SEP  EECS and HEEPSCC to find the average energy of the sensor network. Separate files for different number of nodes are present. Use MATLAB v7.6 to obtain the results. Visit http://bit.ly/186VWzV to download the published paper.