Plz edit your post and properly format your code, as required in the Welcome Topic…
Then read the Help Files and search this forum for keywords like UNO ESP Shield and start reading, as this type of interface has been discussed many, many, much times and need not be rehashed yet again