Skip to content

Instantly share code, notes, and snippets.

@igrr
igrr / ESP8266_K30_DHT.ino
Created December 25, 2015 12:56
ESP8266 + K-30 CO2 Sensor over UART + DHT22 temperature/humidity sensor + MQTT
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <DHT.h>
DHT dht(D5, DHT22);
const char* ssid = "........";
const char* password = "........";
IPAddress mqttServer(192, 168, 1, 10);