====== ESP32 Fan control ===== Example of how to turn the fan on and off #include #define FAN_PIN 18 void setup() { pinMode(FAN_PIN, OUTPUT); } void loop() { digitalWrite(18, HIGH); delay(2500); digitalWrite(18, LOW); delay(5000); }