The paper presents a modified hole detection mechanism (MHD) for wireless sensor networks (WSNs) to identify and heal coverage holes effectively. It introduces localized algorithms to detect boundary and coverage holes, and a virtual forces-based approach for healing them, focusing on minimizing movement costs by relocating only the necessary mobile nodes. The solution aims to enhance the reliability of WSNs, particularly in hostile environments where traditional deployment methods are impractical.