Controlling a light-emitting diode (LED) with an ESP32 Third is a surprisingly simple project, especially when employing a 1k resistor. The resistor limits the current flowing through the LED, preventing it from frying http://theengineerstore.in/products/1k-ohm-resistor-pack-of-10