How could i connect esp8266 to think speak

when i try to connect the esp8266 to aurduino uno to wifi i always found trouble in connect the esp to the aurduino and how to get the codes of the connection
Update: There's another problem I encountered. When I open the serial monitor to check if my wifi is connected or not it almost always fails to connect.

basic plan:
https://github.com/JAndrassy/WiFiEspAT#getting-started

with which part do you have a problem?

Yes, thank you.
There's a new problem. it always fails to connect to my hotspot or internet.

this step?

Open the SetupPersistentWiFiConnection sketch from WiFiEspAT/Tools section in IDE Examples menu. Set the SSID and password on arduino_secrets tab. Run the sketch to make a persistent connection to your WiFi network.