In this study, a novel algorithm for optimizing the coverage of directed sensor networks is proposed. The deployment of sensor networks is typically random, leading to the potential issues of extensive coverage overlaps and blind areas. To address this challenge and enhance the effectiveness of network coverage, a directional sensor network coverage optimization algorithm is developed based on the principles of virtual force and particle swarm optimization. Firstly, the article introduces the concept of a segmented virtual negative centroid model. This model revolutionizes the configuration of the virtual negative centroid, thereby enabling a more efficient adjustment of the gravitational forces exerted by the coverage blind areas on the sensor nodes. Therefore, the influence of these blind areas on the improvement of network coverage is significantly amplified. Secondly, taking into account the characteristics of global optimization and the inherent randomness of particle swarm optimization, the algorithm synergistically combines the principles of virtual force and particle swarm optimization. This integration effectively fine-tunes the sensing direction of the sensor nodes, thereby optimizing their overall performance. The algorithm in this study incorporates an adjusted inertia weight strategy and introduces Gaussian disturbance in the local optimization enhancement phase to prevent local optimization, accelerate particle convergence, and facilitate the sensor network’s attainment of an optimal distribution for coverage optimization. Simulation experiments were conducted to verify the algorithm’s effectiveness. The initial sensor network coverage was 31.04%. After applying the algorithm, the average coverage increased to 80.16%, with a maximum coverage of 84.2%. These results verify the effectiveness of the algorithm.