This paper presents a distributed self-deployment algorithm for mobile sensor networks operating in 3D space, focusing on maximizing coverage while ensuring connectivity under varying sensing coverage degrees. The algorithm uses a gradient descent method to adjust the positions of sensor nodes based on their distances to maintain optimal energy usage and enhance network lifetime. Simulation results demonstrate the effectiveness of the approach in scenarios with different levels of sensing coverage requirements.