Commit 63780dfd authored by samuel.hobman's avatar samuel.hobman

Add new file

parent 064e4f54
#include "DHT.h"
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
float h = dht.readHumidity();
float t = dht.readTemperature();
String firstString = String(h);
String secondString = String(t);
String text = String(firstString + " " + secondString);
Serial.println(text);
delay(1000);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment