air pollution monitering system

I am working on this project,when i connect esp8266 with the arduino i can't find port for esp8266. and espcomm upload mem failed error occurs while uploding the code.

Has nothing to do with your project.

What is the exact error message?
How is the ESP connected to your computer?

i connected esp8266 with the arduino and arduino connected to the computer via USB cable. esp8266 and arduino connections are given below

vcc and EN - 3.3V
GND - GND
TX - PIN 9 of arduino
RX - pin 10 of arduino
esp8266 and arduino are connected via voltage devider. when i select generic esp8266 module board in the arduino IDE I can't find the port for esp8266.

Please post your full sketch. If possible, you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.

Please always do an Auto Format (Tools > Auto Format in the Arduino IDE or Ctrl + B in the Arduino Web Editor) on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read.

When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.

oza:
i connected esp8266 with the arduino and arduino connected to the computer via USB cable. esp8266 and arduino connections are given below

vcc and EN - 3.3V
GND - GND
TX - PIN 9 of arduino
RX - pin 10 of arduino
esp8266 and arduino are connected via voltage devider. when i select generic esp8266 module board in the arduino IDE I can't find the port for esp8266.

Remove ALL the USB connections on your computer.
Reboot your computer.
Plug in ONLY the connection to the Arduino.
Start the Arduino IDE again and try to upload your program.
If the upload works, plug in all the remaining USB devices.

Paul