Controlling one light-emitting diode (LED) with an ESP32 Third is a surprisingly simple task, especially when using a 1k resistance. The resistor limits the current flowing through the LED, preventing it from frying out and ensuring the predictable output. Usually, you'll connect one ESP32's GPIO pin to the resistor, and then connect one load to th