This project shows a temperature/humidity monitoring via flexible IoT platform "sensor21.com". 

This is an example of DHT11 temperature and humidity sensor with sensor21.com IoT platform. 

sensor21.com

Flexible, easy to use IoT platform for your DIY projects. It has configurable alert, filter, e-mail functions, live data graphics and more. You can monitor your sensors or control on/off relays remotely. 

1- Sign Up

2- Add Channel

3- Use your Channel key at your sketch below

mobile2.png
        #include <ESP8266WiFi.h>
#include <WiFiManager.h>
#include <DNSServer.h>
#include <dht11.h>

const char* apikey = "agi2EFoZ1Bey55frQ8tqeZJ1t5aOueDw"; // Replace with your key 
float t, h;
const char DHTpin = D4;

dht11 DHT11;
WiFiClient client;

void setup() {
  Serial.begin(115200);
  WiFiManager wifiManager;
  if(!wifiManager.autoConnect("sensor21")) {
    Serial.println("failed to connect and hit timeout");
    delay(3000);
    ESP.reset();
    delay(5000);
  }    
  Serial.println("connected");
}

void loop() {
  DHT11.read(DHTpin);
  t = DHT11.temperature;
  h = DHT11.humidity;

  // Post request
  String postdata = "apikey="+String(apikey)+"&field1="+String(t)+"&field2="+String(h);

     if (client.connect("sensor21.com",80)){      
        client.println("POST /api/insertpost.php HTTP/1.1");
        client.println("Host: sensor21.com");
        client.println("Content-Type: application/x-www-form-urlencoded");
        client.print("Content-Length: ");
        client.println(postdata.length());
        client.println();
        client.print(postdata);   
        Serial.println(postdata);
        
        if(client.connected()) {
        client.stop();
        } 
     }
 delay(60000); // wait 1 min.
}
    
mcu-dht11_bb.png

For more details please visit sensor21.com