Wireless Sensor Networks form the integral part of Cyber Physical Systems. Large number of sensors which have been deployed in the field help in sensing and controlling applications. With the growing popularity of wireless sensor networks, a variety of techniques have been proposed or employed for increasing the performance and efficiency of such systems. One such technique is usage of Decentralized Erasure Codes to reliably communicate and obtain information over the network. In this work, we are constructing decentralized erasure code setup from the optimal locally recoverable codes and analyze the performance, significance of such a construction. Proposed model is evaluated through simulation in terms of network load and error count per sent packet. From the results, it can be inferred that the proposed model reduces the network load in reconstructing the message or information at the lost node and there by increases the system efficiency. © 2017 IEEE.