Skip to content

Instantly share code, notes, and snippets.

View grevian's full-sized avatar

Josh Hayes-Sheen grevian

View GitHub Profile

Keybase proof

I hereby claim:

  • I am grevian on github.
  • I am grevian (https://keybase.io/grevian) on keybase.
  • I have a public key ASA_1_SJ33bN6vHlA9fotM0bObbdJ5OaHQLEbm8mDlhNXQo

To claim this, I am signing this object:

// This #include statement was automatically added by the Spark IDE.
#include "Adafruit_DHT/Adafruit_DHT.h"
#define DHTPIN 4 //Temperature and humidity sensor will connect to digital pin 4
#define DHTTYPE DHT22 // DHT 22 (AM2302)
int led = D7; // This one is the built-in tiny one to the right of the USB jack
DHT dht(DHTPIN, DHTTYPE); //Create a DHT 22 object on digital pin 6