Temperature and humidity are an important factor affecting our life. extreme conditions of any of them can change our way to live.

Monitoring them with evive is an easy task. All you need is DHT 11 sensor which provides accurate Temperature and humidity monitoring.

This DHT 11 sensor has three pins Namely Vcc Ground and Signal. Unlike LM35 this module works on Single Pin communication. 

Single Pin communication means the same pin works as Transmitter and receiver.

Adafruit DHT sensors are DHT11, DHT22.

You need to install DHT 11 Sensor Library in Arduino IDE which provides easy access to DHT functions.


Coding Algorithm:

  • Add evive library
  • Add DHT11 library.
  • Start TFT screen with your TAB colour
  • Fill Screen with black.
  • Set text colour.
  • Turn on DHT object.
  • Set Cursor.
  • Read temperature and Humidity.
  • Print it on TFT Screen.
  • Repeat.


 * evive IoT kit tutorials
 * made with evive
 * by Nihar Shah
 * on 25 December 2017
 #include <evive.h>
#include "DHT.h"
#define DHTPIN 2 //pin of DHT
#define DHTTYPE DHT11 //DHT Type 
DHT dht(DHTPIN, DHTTYPE); // library function
float t = 0; //for temperature
float h = 0; // for humidity.
void setup() {
 tft_init(INITR_BLACKTAB); // start tft display 
 tft.fillScreen(ST7735_BLACK); // fill with black colour
 tft.setTextColor(ST7735_WHITE, ST7735_BLACK); // set text colour with white and white background
 dht.begin(); // begin dht object
 tft.setCursor(0, 50); // set cursor 

void loop() { 
 t = dht.readTemperature(); // read temperature
 h = dht.readHumidity(); // read humidity
 tft.print("temperature = "); // print temperature 
 tft.print("humidity = "); // print humidity
 tft.setCursor(0, 50); // set back to previous stage to avoid overlaping

Do It yourself:

You can use this tutorial as a base and try to upload this temperature data to Thingspeak cloud shown in this tutorial.

This Helped
This didn't help
Close Menu


STEMpedia Starter Package is now on Indiegogo!
Get 41% OFF with Super Early Bird discounts!