ObjectBlocks: WeatherStation
Revision as of 22:45, 19 March 2023 by Onnowpurbo (talk | contribs)
#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); }