The paper presents a modified ant colony algorithm aimed at solving the energy-efficient target coverage problem in wireless sensor networks (WSNs) by selecting the minimum number of active nodes required to monitor all targets. Experimental results indicate that this approach significantly reduces the number of working nodes compared to traditional algorithms, thereby maximizing the network's lifetime. The findings underscore the algorithm's effectiveness in managing power constraints in WSNs while maintaining optimal coverage.