Edit your post. put your code in code tags.
When you ran the I2C scanner what did it report as the the devices I2C address?