Controlling a light-emitting diode (LED) with an ESP32 Three is one surprisingly simple project, especially when using a 1k resistance. The resistance limits a current flowing through a LED, preventing it from melting https://estelledomh095016.eedblog.com/38860936/esp32-three-led-regulation-with-a-1k-resistance