Controlling a light-emitting diode (LED) with a ESP32 Third is one surprisingly simple task, especially when utilizing the 1k resistance. The resistor limits a current flowing through a LED, preventing it from melting out and ensuring one predictable brightness. Typically, one will connect the ESP32's GPIO pin to the load, and then connect a resist