Hi annu_shah
Which board are you usign? Gen1 or Gen2?
Also, after uploading the code are you receiving an error in the IDE or everything looks fine?
Take a look at this threads:
If you try this one put the Wire.begin() also in the void setup, check the workarounds that are mentioned there
Regards;
CMata