A Cooperative Sensor Network: Optimal Deployment and Functioning