programming esp8266

Hi.i want to read temp with dht11 sensor and connect it to arduino after that send data temp on web with static ip

But i want to use esp8266ex not nodemcu.

Every where show how connect dht11 to nodemcu.

I used softwareserial to connect esp8266 to arduino
How can i connect to my wifi and send temp on static ip address
Please help :’(

alirezzzaa:
But i want to use esp8266ex not nodemcu.

Every where show how connect dht11 to nodemcu.

They are not that different, ESP-01 has fewer pins (connected) and less memory (though easily enough for what you want to do) but same CPU

alirezzzaa:
I used softwareserial to connect esp8266 to arduino

on both sides ? just show us you complete circuit schematic (not Fritzing !) and the complete codes you want to use (within </> code-tags)

in my project i want to connect 5 sensor that need 4 or5 analog pin and i dont want to use nodemcu because have 1 analog pin

And i think if iwant to connect nodemcu with uno i should programm both of them but in esp01 i programm just my uno
This is my code but its not complete :’(

And if you see my code understand my schematic

I used at command to connect wifi

#include <SoftwareSerial.h>

#include “DHT.h”

SoftwareSerial wifiSerial(2, 3); // RX, TX for ESP8266

#define DHTTYPE DHT11

bool DEBUG = true; //show more logs

int responseTime = 10; //communication timeout

const char* ssid = “Reza1”;

const char* password = “reza1830”;

IPAddress ip(192, 168, 1, 42); //set static ip

IPAddress gateway(192, 168, 1, 1); //set getteway

IPAddress subnet(255, 255, 255, 0);//set subnet

WiFiServer server(80);

// DHT Sensor
const int DHTPin = 5;
// Initialize DHT sensor.
DHT dht(DHTPin, DHTTYPE);
static char celsiusTemp[7];
static char fahrenheitTemp[7];
static char humidityTemp[7];

void setup()
{
pinMode(13,OUTPUT); //set build in led as output
// Open serial communications and wait for port to open esp8266:
Serial.begin(115200);

dht.begin();

wifiSerial.begin(115200);

sendToWifi(“AT+CWMODE=3”,responseTime,DEBUG); // configure as access point
sendToWifi(“AT+CWQAP”,responseTime,DEBUG); // get ip address
sendToWifi(“AT+CIPMUX=1”,responseTime,DEBUG); // configure for multiple connections
sendToWifi(“AT+CIPSERVER=1,80”,responseTime,DEBUG); // turn on server on port 80
sendToWifi("AT+ CWSAP= “ssid”,”pwd"responseTime,DEBUG);
sendToUno(“Wifi connection is running!”,responseTime,DEBUG);

}

in my project i want to connect 5 sensor that need 4 or5 analog pin and i dont want to use nodemcu because have 1 analog pin

Fair enough, but there s a way around this of course. You could drive the senors through a GPIO output of their own, and so do a sequential reading working like:
-set sensor pin high,
-read ADC sensor value
-set sensor pin low.

And i think if iwant to connect nodemcu with uno i should programm both of them but in esp01 i programm just my uno

To really either way. You can put a version of AT-command firmware on the nodemcu if you would want, and you can program the ESP-01 freely using the IDE as well.
Not only that, programming both units is in my opinion the way to go, you will be more flexible in expanding your program. The approach you are taking now is cumbersome.

This is my code but its not complete :’(

and it is now within </>code-tags.
Where is the example on how to connect a DHT unit to a nodemcu ?
wifiSerial.begin(115200);This is not a reliable baud-rate for swSerial. For transmission it is but at that speed you will not receive a reliable reply. Either send the command to change to 9600, or upload a firmware version that communicates at 9600 BAUD.