loading
1 Comments

Tell us about yourself!

Complete Your Profile
  • ESP8266-12 blynk  wireless temperature, humidity DHT 11 sensor

    I made on NodeMCU 1.0My sketch:#define BLYNK_PRINT Serial // Comment this out to disable prints and save space#include <ESP8266WiFi.h>#include <BlynkSimpleEsp8266.h>#include <DHT.h>#include <SimpleTimer.h>#define DHTPIN 12#define DHTTYPE DHT11DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer;float humidity, temp_f; // Values read from sensorchar auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //insert here your token generated by Blynkvoid setup(){ Serial.begin(9600); // See the connection status in Serial Monitor delay(10); Blynk.begin(auth, "xxxxxxxxxxxxxx", "xxxxxxx"); //insert here your SSID and password timer.setInterval(1000, sendData); }void sendData(){//Read the Temp and Humidity from DHT float h = dht.readHumidity(); float ...see more »I made on NodeMCU 1.0My sketch:#define BLYNK_PRINT Serial // Comment this out to disable prints and save space#include <ESP8266WiFi.h>#include <BlynkSimpleEsp8266.h>#include <DHT.h>#include <SimpleTimer.h>#define DHTPIN 12#define DHTTYPE DHT11DHT dht(DHTPIN, DHTTYPE); SimpleTimer timer;float humidity, temp_f; // Values read from sensorchar auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; //insert here your token generated by Blynkvoid setup(){ Serial.begin(9600); // See the connection status in Serial Monitor delay(10); Blynk.begin(auth, "xxxxxxxxxxxxxx", "xxxxxxx"); //insert here your SSID and password timer.setInterval(1000, sendData); }void sendData(){//Read the Temp and Humidity from DHT float h = dht.readHumidity(); float t = dht.readTemperature();//Write values to V04 and V05 Blynk.virtualWrite(4, h); Blynk.virtualWrite(5, t);}void loop(){ Blynk.run(); timer.run();}

    View Instructable »
  • beta-tester followed Robots, Electronics, Tools, Fishing and 6 others channel 11 months ago