Visual Sensor Networks (VSNs) have emerged as a key technology for next-generation wireless networking. Routing also plays a vital role in Visual Sensor Network. In Visual Sensor Networks frequent congestion or link failures are caused by channel interference, energy consumption and bandwidth demands. Sometimes these failures lead to node partitioning in the network. Then these failures cause performance degradation in VSNs. Finally, the throughput is reduced and it becomes less energy efficient. To overcome these drawbacks, this paper presents a backpressure algorithm. It is used to route each packet along the required path in the network.