This paper presents a modified ant colony algorithm to address the energy-efficient target coverage problem in wireless sensor networks (WSNs) by selecting a minimum number of active nodes to monitor all targets, thus extending the network's lifetime. The experimental results demonstrate that this approach reduces the number of working nodes needed compared to other algorithms while improving coverage ratios significantly. The study concludes by suggesting future work on applying this methodology to heterogeneous WSNs with varying energy consumption across sensors.