Resource Efficient Deployment and Data Aggregation in Pervasive IoT Applications (Smart Agriculture)