ESP8266 WiFi Touch Screen Thermostat





Introduction: ESP8266 WiFi Touch Screen Thermostat

In this tutorial we will show how to build WiFi controlled thermostat with ESP8266, Arduino and touch screen display. Thermostat will also show other info, like weather forecast and temperature outside. Total cost for thermostat is about 40EUR, which is price for basic commercial thermostat in shop.

Basic features:

  • 6 modes - Auto, Off, LOLO, LO, HI, HIHI
  • Touch screen
  • WiFi connected
  • Four set temperatures (LOLO, LO, HI, HIHI) and weekly schedule
  • Time display
  • Additional data display - temperature in other room, air pressure and weather forecast

See more tutorials at

Step 1: Materials

  • Arduino Mega 2560
  • ESP8266 WiFi module
  • BMP180 Digital Barometric Pressure Sensor
  • DHT22 Digital Temperature And Humidity Sensor
  • 1 Channel Isolated 5V Relay Module
  • RTC DS1302 Real Time Clock Module
  • 3.2" TFT LCD Module Touch Panel+ TFT 3.2" LCD Shield Expansion Board For Arduino

Step 2: Connections

Connect Arduino and TFT shields together. Then add ESP8266 module. Then add ESP8266 to Arduino. See Connenct 5V Arduino and ESP8266 tutorial for details.

DHT22 connections

Arduino DHT22



8->2 DATA

BMP180 connections

Arduino BMP180 module





RTC DS1302 connectios

Arduino DS1302






See ESP8266 WiFi thermostat for details.

Step 3: Programming

Download program from GitHub. Current program version can be complied with Arduino 1.0.6. If you want to use Arduino 1.6 and above please use latest version of UTFT library.

Step 4: EasyIoT Server Setup

This step is optional if you want remote access to your thermostat from computer or smartphone.

Go in EasyIoT server (Windows or Raspberry Pi platform) and add new thermostat in configuration. If you done everything correctly you should see thermostat in Web interface.

See ESP8266 WiFi thermostat for details.



  • Science of Cooking

    Science of Cooking
  • Pocket-Sized Contest

    Pocket-Sized Contest
  • Trash to Treasure

    Trash to Treasure

We have a be nice policy.
Please be positive and constructive.




Do you have the STL for the case please

Use the BME280 sensor instead, has humidity, temperature and pressure, all in one :)

Also, the RTC may not be necessery, someone tested the time keeping of the ESP8266 and it was only 1 sec off per day, so running NTP sync every day(s)/week would be sufficient, also, the DS1302 is not even that precise, if one wants a good one, get the DS3231

Can this be modified to control an electric floor heating element ? And if so how would it read the temps from the floor sensor ?

looking into building this and trying to control it via HomeAssistant instead. Anyone know where abouts to start with modifying it?

Is an Arduino Mega really necessary? Would an UNO be sufficient?

I think there is no such kind of shield and screen for the UNO

Can you modify this to not need the separate arduino and just do everything on the ESP8266-12 now that it can use the arduino IDE?

the esp is not capable of controlling the lcd etc by itself so you would need the arduino

Oh yeah I see. How about using a Screen with SPI like