Introduction: ARDUINO - SPFD5408 TFT LCD 2.4 TEMP and HUMIDiTY Monitor. Fahrenheit & Celsius!

Picture of ARDUINO - SPFD5408 TFT LCD 2.4 TEMP and HUMIDiTY Monitor. Fahrenheit & Celsius!

Hello world! Today i made a Temp & Humidity Monitor with a DHT11 Sensor & the 2.4 TFT LCD Shield on a arduino Mega. Its shows Fahrenheit & celsius, Also for both Heat Indexes are displayed.

Follow the next step for the Code, Schematic, Libraries & Parts list.

You need 3 Libraries. They are included in the downloads.

  • SPFD5408_Adafruit_GFX.h
  • SPFD5408_Adafruit_TFTLCD.h
  • SPFD5408_TouchScreen.h

Step 1: Schematic, Code, Libraries & Parts List.

Picture of Schematic, Code, Libraries & Parts List.

Just wire the DHT11 Like the Schematic shows, and plug on the TFT LCD on top of the Arduino Mega.

Make sure you download and install the libraries, and Upload the code and you have yourself a nice cheap

to build Temp & Humidity monitor.

Parts list:

  • Arduino Mega
  • 2.4 TFT LCD SPFD5408 (Aliexpress got them very cheap)
  • DHT11 Temperature sensor. KY-015
  • Jumper wires

Good luck! Follow me for more!


big_nichev (author)2017-11-22

I made it, it works nice!

Unfortunately external power can't support live running? Any suggestions?

Thank you.

big_nichev (author)2017-11-22

Hi, can't import library from zip?

Please give a hint.

JayA73 (author)2016-09-23

can i use arduino uno?

vandenbrande (author)JayA732016-09-23

Yes but then you need to solder a pin to the bottom of pin A0 to A5 depends wich one u want to use. Change it at "#define DHTPIN A8" Change A8 to A0 or whatever analog pin u are going to use for the DHT11. If you have no Holes to solder a pin because you have a Chinese copy for example. Just remove Pin A0 for example from the tft lcd. Bend that pin that you just cut off so it sticks out and solder a wire to is. You also need to solder A wire to GND and VCC for the DHT if you want to use a uno. Good luck!

Be careful! Don't cut out the pins for 5v and GND on the tft LCD, Only cut the Analog ones, or pins that are not used by the TFT LCD, (NOTE, This is just a simple solution i dont recommend it, Thats why i use a mega, You can also add some more things like a RTC Module for time and Date, which is what i wanna do.

JayA73 made it! (author)vandenbrande2016-09-23

yeeaaaah it works without solder, THANK YOU Vandenbrande !!

sasi2103 (author)JayA732017-09-30

Hi JayA73, Can you please share me the Schematic for Arudino uno with 2.4" TFT and Sensor connection to Sasikumar. M

vandenbrande (author)JayA732016-09-23

No thanks by the way! Its a fun little cheap thing to build.

vandenbrande (author)JayA732016-09-23

It seems that the value of the Heat index is not displayed right. But it works, just reset it and see if it displays it right or not.

JayA73 (author)vandenbrande2016-09-23

What if I dont use solder, I use a breadboard and jumper wires? of course i will use alot of jumper wires. thanks

raspgraph made it! (author)2017-07-01


raspgraph (author)2017-07-01

For MCUFRIEND TFT LCD Replace the first 8 lines with

#include <Adafruit_GFX.h>// Core graphics library

#if defined(_GFXFONT_H_)

#include <Fonts/FreeSans9pt7b.h>

#define ADJ_BASELINE 11 //new fonts setCursor to bottom of letter


#define ADJ_BASELINE 0 //legacy setCursor to top of letter


#include <MCUFRIEND_kbv.h>

MCUFRIEND_kbv tft;

And replace

tft.begin(0x7783); //MCUFRIEND Chipset ID on Librarytft.begin(0x7783);

yogamen (author)2017-03-23

what is necessary to change in sketch?

yogamen (author)2017-03-23

Good day, pls help me please, I have TFT LCD 3" same shield only different controller inside ili9327. How to change sketch ?

cptjolap (author)2017-02-04

i got it to load on mega2560 but screen stays black i change my pins for my mcufriend shield to yp A3 xm A2 Ym 9 XP 8 even went in the touch screen ccp file to change the return tspoint too x 1100 and y 1043 but dont work help plzzzz

sgarbo made it! (author)2017-01-16

What a fun project. I almost gave up on this display ( due to fustration) but this project motivated me to bring it to life. I did have to for some reason modify the code to fit my display. Thank you for some awesome instuctable!

valentinjoubert made it! (author)2017-01-09

Yes it´s works

About This Instructable




Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:ARDUINO - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: