Sample Code which is similar code which I successfully use with Thingspeak
main:
readtemp C.1, temp_now 'Read temperature from DS18B20, and store it in b1.
bintoascii temp_now,b11,b12,b13 'Convert current temperature from binary to ASCII.
serout C.4,baud,("AT",13,10) 'Send attention command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWQAP",13,10) 'Send disconnect from Wi-Fi command+CR+LF to ESP-01.
serout C.4,baud,("AT+RST",13,10) 'Send reset command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWMODE_CUR=1",13,10) 'Send STA command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWJAP_CUR=",34,"SSID",34,",",34,"password",34,13,10)
serout C.4,baud,("AT+CIPSTART=",34,"TCP",34,",",34,"https://maker.ifttt.com",34,",80",13,10)
serout C.4,baud,("AT+CIPSEND=72",13,10)
serout C.4,baud,("/trigger/temp_limit/with/key/xxxxxxxxxxxxxxxxxxxxxxx",13,10)
pause 5000
main:
readtemp C.1, temp_now 'Read temperature from DS18B20, and store it in b1.
bintoascii temp_now,b11,b12,b13 'Convert current temperature from binary to ASCII.
serout C.4,baud,("AT",13,10) 'Send attention command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWQAP",13,10) 'Send disconnect from Wi-Fi command+CR+LF to ESP-01.
serout C.4,baud,("AT+RST",13,10) 'Send reset command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWMODE_CUR=1",13,10) 'Send STA command+CR+LF to ESP-01.
serout C.4,baud,("AT+CWJAP_CUR=",34,"SSID",34,",",34,"password",34,13,10)
serout C.4,baud,("AT+CIPSTART=",34,"TCP",34,",",34,"https://maker.ifttt.com",34,",80",13,10)
serout C.4,baud,("AT+CIPSEND=72",13,10)
serout C.4,baud,("/trigger/temp_limit/with/key/xxxxxxxxxxxxxxxxxxxxxxx",13,10)
pause 5000