DavidOConnor:
Try this...if (value == 5592323UL) {
state = !state;
digitalWrite(RELAY1, state);
mySwitch.resetAvailable();
}
This works pretty damn good David!
I put a delay(500); in between digitalwrite and myswitch.resetavailable and it stopped the relay from bouncing on and off!
Such a simple, clean code, compared to what I was trying to use!
Are you able to explain to me what is actually happening with this sketch?
Thank you and I will reply to the rest when I get home from work! Thanks alot everyone!