did you install the ESP8266 board?
did you change the IO-pin numbers to match the ESP8266 I2C-io-pins?
I think from these questions you can see. You have to learn quite a bit more.
Re-edit your code in the first posting after reading this manual
best regards Stefan