ESP8266 12e

I am working on Power Monitoring Project and unable to understand the connection between Arduino Mega and esp8266 module . Any one kindly give me 100% working design

this might help LMGTFY

Subject mentions the ESP 12E module.

That makes this document the perfect place to start.

The actual connection and communication between the Mega and the ESP is via the Serial interface.