Hi, I want to receive energy in PIN7 and when it happens I want the led (pin13) to turn ON. if the energy stops the led should go OFF.
I can do that, the problem is that it’s not reliable, sometimes i’m not giving energy in PIN7 and it’s keeps saying that i’m doing that. Can someone help me pls
The code might not be the best (i’m new) if you have improvements fell free to add them.
And sorry if my english was not the best…
power_led.ino (401 Bytes)