Optimization of Energy Consumption in Clustered Nodes of WSN Using the Black Hole Algorithm