Arduino Mega send data to ESP8266-01 then ESP forward to RPI (MQTT)

I used delay because I thought it would slow down the data coming to the terminal on the Pi and it wouldn't be so clustered, basically display smoother.