![Amazon.com: WayinTop 5mm LEDs & Resistor Assortment Kit for Arduino Projects, 600pcs Resistors from 10 Ohm to 1 MOhm with 30 Values + 200pcs 5mm LED Light Emitting Diode 5 Colors : Industrial & Scientific Amazon.com: WayinTop 5mm LEDs & Resistor Assortment Kit for Arduino Projects, 600pcs Resistors from 10 Ohm to 1 MOhm with 30 Values + 200pcs 5mm LED Light Emitting Diode 5 Colors : Industrial & Scientific](https://m.media-amazon.com/images/I/71PhkLcEYJL._AC_UF894,1000_QL80_.jpg)
Amazon.com: WayinTop 5mm LEDs & Resistor Assortment Kit for Arduino Projects, 600pcs Resistors from 10 Ohm to 1 MOhm with 30 Values + 200pcs 5mm LED Light Emitting Diode 5 Colors : Industrial & Scientific
![I'm working on a NodeMCU project and have a small doubt about LEDs and resistors - Arduino Stack Exchange I'm working on a NodeMCU project and have a small doubt about LEDs and resistors - Arduino Stack Exchange](https://i.stack.imgur.com/FEQDc.png)
I'm working on a NodeMCU project and have a small doubt about LEDs and resistors - Arduino Stack Exchange
![Does anyone have an explanation why I need a resistor in this circuit? Best I can say is that it protects the Arduino pin from any push back current from the solenoid Does anyone have an explanation why I need a resistor in this circuit? Best I can say is that it protects the Arduino pin from any push back current from the solenoid](https://preview.redd.it/does-anyone-have-an-explanation-why-i-need-a-resistor-in-v0-ckpxo0gshmfa1.jpg?width=640&crop=smart&auto=webp&s=7a22ae742fac091a3e179dda060880a4b3828658)