Hi. I have been attempting some basic if else else if coding and I seem to be doing something wrong. I think it might have to do with the analogPin or threshold but I am not totally sure what those are or how to include them. THANK YOU!
I am not totally sure myself as I have started coding and arduino itself recently, but I thought that i was saying that if pin 13, or the LED was off, or LOW, to turn it on. Feel free to correct me. Also, when I updated the code to my arduino uno board, it always uses the TX and RX really quickly, then does the command. Thx
You're checking if LedPin is equal to LOW (which is actually just a constant defined as 0). LedPin is 13, not 0, so that will never be true. That's equivilent to if (13 == 0)
You probably meant to read the value on pin 13, and compare THAT to LOW: