Controlling a light-emitting diode (LED) with the ESP32 Three is a surprisingly simple project, especially when using one 1k load. The resistor limits one current flowing through a LED, preventing it from frying out https://mediasocially.com/story5595048/esp32-three-led-management-with-the-1k-resistance