View full-text article in PMC Sensors (Basel). 2015 Dec 4;15(12):30545–30570. doi: 10.3390/s151229817 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2015 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons by Attribution (CC-BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Signal hole detection. Require: GM[][]←SplitnetworkintosmallgridsN*N for i=1: N do for j=1: N do GM[i][j] = White end for end for for i=1: NoofSensor do for j=1:NoofAP do if error_deviation(AP)<threshold then for X=1: N do for Y=1: N do if Grid(X,Y)isindirectionofAP,sensor(i) then GM(X,Y)←gray end if end for end for end if end for end for