The document presents a new connectivity-based localization method using the centroid of a triangle for wireless sensor networks (WSNs), aiming to improve localization accuracy while minimizing error. Simulation results indicate that this modified centroid method (centroid_t) performs better than existing centroid methods, particularly as the number of anchor nodes and radio range increases. The study highlights the balance between accuracy, cost, and energy consumption in localization methods for WSN applications.