Sensors provide flexibility to the user to be deployed in any environment of user's choice. In spite of many disadvantages, the beneficiary factors have provided a strong intention to use these nodes as a monitoring tool to ease human effort. To add better integrity to the data being transmitted, encryption key can be utilized. Authenticating the data enhances security to a larger extent. In this paper, the above concepts are being focused. The paper generates encryption key which not only provides integrity to the data being transmitted, but strongly authenticates the source of the generation of data.