Skip to content

Instantly share code, notes, and snippets.

@circuitsmy
circuitsmy / Arduino_Uno_DHT11.ino
Last active April 26, 2020 23:39
Arduino DHT11 Tutorial
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#define DHTPIN 8 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT11 // DHT 11
DHT_Unified dht(DHTPIN, DHTTYPE);
@circuitsmy
circuitsmy / DHT_API_EXAMPLE.ino
Last active April 13, 2020 06:55
Circuits IO Guide Example
#include <WiFi.h>
#include "DHT.h"
#include <HTTPClient.h>
#define DHTPIN 5 // DHT sensor pin
float h = 0;
float t = 0;
// Replace with your network credentials
const char* ssid = "YOUR SSID NAME";
const char* password = "YOUR NETWORK PASSWORD";
@circuitsmy
circuitsmy / DHT_DisplayOnly_API.ino
Last active April 6, 2020 11:01
DHT Display Only API for Circuits IO
#include <WiFi.h>
#include "DHT.h"
#include <HTTPClient.h>
#define DHTPIN 5 // DHT sensor pin
float h = 0;
float t = 0;
// Replace with your network credentials
const char* ssid = "YOUR SSID NAME";
const char* password = "YOUR NETWORK PASSWORD";
#include <WiFi.h>
#include "DHT.h"
#include <HTTPClient.h>
// Replace with your network credentials
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
// Set web server port number to 80
WiFiServer server(80);
@circuitsmy
circuitsmy / Slider_RGB_CircuitsIO.ino
Last active May 11, 2020 01:25
Slider_RGB_CircuitsIO
#include <WiFi.h>
#include <HTTPClient.h>
// Replace with your network credentials
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
// Set web server port number to 80
WiFiServer server(80);
@circuitsmy
circuitsmy / Trigger_button_RGB_CircuitsIO.ino
Created April 28, 2020 02:11
Trigger_button_RGB_CircuitsIO
#include <WiFi.h>
#include <HTTPClient.h>
// Replace with your network credentials
const char* ssid = "YOUR_SSID";
const char* password = "YOUR_PASSWORD";
// Set web server port number to 80
WiFiServer server(80);