Hi, @SaiMahajan
Welcome to the forum.
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum
What model Arduino?
What LED?
-Vin and gnd, do you mean you connected these terminals up the wrong way?
What was your power supply?
Thanks... Tom..
![]()