0% found this document useful (0 votes)
5 views

Code Humidifier

The document describes a project using an ESP32 to measure temperature and humidity with a DHT sensor and display the readings on an OLED screen. It includes code to connect to WiFi and Blynk for remote monitoring and defines pins and libraries used.

Uploaded by

Ananya Chitale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Code Humidifier

The document describes a project using an ESP32 to measure temperature and humidity with a DHT sensor and display the readings on an OLED screen. It includes code to connect to WiFi and Blynk for remote monitoring and defines pins and libraries used.

Uploaded by

Ananya Chitale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/* Fill-in your Template ID (only if using Blynk.

Cloud) */
#define BLYNK_TEMPLATE_ID "TMPL3Lt4Kz021"
#define BLYNK_TEMPLATE_NAME "Iot Temperatore and humidity sensor"
#define BLYNK_AUTH_TOKEN "ot-W_ApiAzF07qPwktlHlXLxgsYux4no"

// Your WiFi credentials.


// Set password to "" for open networks.
char ssid[] = "Arya Airtel";
char pass[] = "mh12ed6256#";

#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
#include <DHT.h>
#include <Preferences.h>
#include <AceButton.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

using namespace ace_button;


Preferences pref;

#define DHTPIN 23 //D23 pin connected with DHT


// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22, AM2302, AM2321
//#define DHTTYPE DHT21 // DHT 21, AM2301

#define SCREEN_WIDTH 128 // OLED display width, in pixels

You might also like