Problem getting arduino uno and esp8266 to work together

My project is about sending temperature and humidity data to Thingspeak via an esp8266-01. I am using an Arduino Uno to work with the ESP8266.
Unfortunately, no matter how many tutorials and videos I follow, I haven’t had any success. I have been able to send data to Thingspeak by connecting the Reset pin with the ground pin, which disables the Atmega chip. However, this method won’t allow communication with the sensors, which means that I won’t be able to get data from the DHT11 sensor.

Any help is appreciated! Thank you for your time.

My code:

#include <SoftwareSerial.h>
#include <dht11.h>
#define RX 2
#define TX 3
#define dht_apin A0 // Analog Pin sensor is connected to
dht11 dhtObject;
String AP = "***********";       // SSID
String PASS = "*********"; // Password
String API = "***********";   // Write API KEY
String HOST = "";
String PORT = "80";
int countTrueCommand;
int countTimeCommand; 
boolean found = false; 
int valSensor = 1;
SoftwareSerial esp8266(RX,TX); 
void setup() {
  sendCommand("AT+CWJAP=\""+ AP +"\",\""+ PASS +"\"",20,"OK");

void loop() {
 String getData = "GET /update?api_key="+ API +"&field1="+getTemperatureValue()+"&field2="+getHumidityValue();
 sendCommand("AT+CIPSTART=0,\"TCP\",\""+ HOST +"\","+ PORT,15,"OK");
 sendCommand("AT+CIPSEND=0," +String(getData.length()+4),4,">");

String getTemperatureValue(){;
   Serial.print(" Temperature(C)= ");
   int temp = dhtObject.temperature;
   return String(temp); 

String getHumidityValue(){;
   Serial.print(" Humidity in %= ");
   int humidity = dhtObject.humidity;
   return String(humidity); 

void sendCommand(String command, int maxTime, char readReplay[]) {
  Serial.print(". at command => ");
  Serial.print(" ");
  while(countTimeCommand < (maxTime*1))
      found = true;
  if(found == true)
    countTimeCommand = 0;
  if(found == false)
    countTrueCommand = 0;
    countTimeCommand = 0;
  found = false;

Output(I changed my password and ssid) :
0. at command => AT Fail
0. at command => AT+CWMODE=1 Fail
0. at command => AT+CWJAP="-----------","-------------" Fail

Software serial doesn't work reliably at 11500 baud. You'll need to use the appropriate AT command to change the AT firmware's baud rate to 9600 baud, then change this line of your code:




to communicate with the ESP-01 at 9600 baud.