| Algorithm 2: Data Aggregation Using Compressed Sensing Theory |
| Input: Sensor data = {1, 2,…, n} |
| Output: Compressed data y |
| 1:Compute the data aggregation fromPN1 to DODAG root |
| 2:Compute the data aggregation in DODAG root from the M paths |
| 3: Return the aggregated data y. |