Esp-01 | 01s

Always buy ESP-01S unless you have a specific need for the original's smaller flash (almost never). For anything beyond two I/O pins, skip both and use ESP-12E/F, Wemos D1 Mini, or NodeMCU.

#define LED 2 // GPIO2, active LOW on ESP-01S void setup() pinMode(LED, OUTPUT); digitalWrite(LED, HIGH); // off esp-01 01s

void loop() digitalWrite(LED, LOW); // on delay(1000); digitalWrite(LED, HIGH); delay(1000); Always buy ESP-01S unless you have a specific

void loop() float h = dht.readHumidity(); float t = dht.readTemperature(); client.publish("sensor/temp", String(t).c_str()); delay(30000); skip both and use ESP-12E/F

DHT dht(DHTPIN, DHTTYPE); WiFiClient espClient; PubSubClient client(espClient);

Esp-01 | 01s

An account is required to access this content. Join to get access!

Join Now
X

Esp-01 | 01s

X

Esp-01 | 01s

Enter your email to reset your password

X

Esp-01 | 01s

This website contains age-restricted materials. If you are under the age of 18 years, or under the age of majority in the location from where you are accessing this website you do not have authorization or permission to enter this website or access any of its materials.