IOT Workshop ESP8266-12E + DHT11 (Temp + Humidity sensor)

To help take care of for example acoustic guitar. And to help you better take care of your instruments.

I did a project using ESP8266-12E and DHT11. With the help of these I was able to project the temperature and humidity of the area.

DHT11 sensor
4,7k resistor
3 Jumpwire

Data to D4, VCC to 3v3, Gnd to Gnd
Resistor to Data – Gnd


First I did the blink test on it.

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
delay(1000);                       // wait for a second
digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
delay(1000);                       // wait for a second

Then I put the DHT11 sensor to work using adafruits instructions.

Screenshot from 2017-03-24 09-32-08

After that I worked on getting the data online using and

Screenshot from 2017-03-24 09-21-07


Accessing and allowing the esp-12e wifi to connect. I used”ESP8266-12E WLAN code v 0.0.9″ to test its internet connecting to wifi. This allowed to me make an stable connection to wifi. Then you can use a power bank or batteries to power it up.

You can use your phones ssid to keep it in the wifi.

const char* ssid     = “xxxxxxx”;
const char* password = “xxxxxxxx”;

const char* host = “”;

void setup() {

Serial.print(“Connecting to “);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {

Serial.println(“WiFi connected”);
Serial.println(“IP address: “);

Full code:

More IoT projects :


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s