ESP8266 Weather Server With LCD Display





Introduction: ESP8266 Weather Server With LCD Display

About: Creator of things


  • NodeMCU ESP8266 Chip or any other ESP8266 chip
  • 1602A 16x2 LCD Display
  • I2C LCD Backpack
  • Some wires and breadboard
  • DHT11 Temperature Sensor

Step 1: Attaching ESP8266 on Breadboard

  • This step is connecting the chip on to the breadboard .
  • Do not connect any wires yet.

The board should look like above picture without the wires .

Step 2: Connect I2C Backpack to LCD Display

In this step you are to connect the I2C backpack board to the main 1602A LCD Board.

The I2C Board exposes only four wire pins

Step 3: Temperature Sensor DHT11

Place the DHT11 Sensor on bread board as shown in image.

Step 4: Wiring Connections

Sensor Wiring

  • GND - ESP8266 GND Pin
  • VCC - ESP8266 3.3 V Pin
  • Data - ESP8266 RX Pin

LCD I2C Wiring

  • GND - ESP8266 GND
  • VCC - ESP8266 5V Pin
  • SDA - ESP8266 D2 Pin
  • SCL - ESP8266 D1 Pin


  • Connect with micro usb cable to laptop
  • Make sure you have the USB to UART Driver installed
  • Install Arduino and install the below libraries and boards
    • LiquidCrystal I2C
    • DHT
    • ESP8266 Board

  • Run the arduino IDE and look for ports in tools and select the USB - UART Port
  • Then from samples choose blink example, upload and test if LED blinks
  • Now copy the code - Weather Server LCD Code

Then publish it and voila it will start showing the temperature and humidity in your lcd . Make sure to change Wifi config in code.

Also if you open browser : http://iot-web.local/api

It will also show an api with same sensor data



    • Oil Contest

      Oil Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest

    6 Discussions

    Hi, may I ask - the ESP is 3.3v but the DHT and the LDC are both 5v - how do you overcome this difficulty and get a bright/readable display?



    3 replies

    Hi I have used the NodeMCU variant of the esp8266 which comes with a 3.3v plus a 5v pin as well and the voltage regulator is also part of the board. Try that one out

    OK cool - I am using an esp-201 with the external antenna to get some distance reliability (down the garden to the workshop) and add a server to the project, so I may well use a regulator module. Thanks. Good project.

    Nice. This would be really useful to have next to my alarm clock. Then you could know the weather when deciding what to wear for the day.