An Optimal Approach for Deployment Sensors in WSN