ObjectBlocks: WeatherStation
Jump to navigation
Jump to search
#include <DHT.h> #include "Channel.h" DHT dht(2, DHT11); void setup() { Channel.connect("mFPdJAqtBzpu7t"); dht.begin(); } void loop() { Channel.sendNumber("TEMP", dht.readTemperature()); delay(1000); Channel.sendNumber("HUMIDITY", dht.readHumidity()); delay(1000); }