Get AC electric current from ACS 712 then post to web server through ESP8266

I'm gonna deploy project Ac current data collecting then post to web server through wifi
There are arduino mega2560, ACS712 20A, Wifi ESP8266 Uart ESP-01S Ai-Thinker . Here is wiring diagram. I'm new in arduino project So I don't have much experience to do it. Please help me to valid that my diagram is ok or not. Please share me any the same project or type some sample code here for help. Thanks a lot