I need some help if any can help me please do. I want to use the serial monitor to count how many time's the LEd light come's on can any one help me here is my sketch so far...i'm not sure what to do next please point me in the right direction..thanks
nt ledpin = 12;
I want to use the serial monitor to count how many time's the LEd light come's on
Looking at that code, it should be obvious that the light comes on once per iteration of loop(). You need to create a global variable, or a static variable in loop() initialized to 0, and increment that variable in loop().