Just remove the byte at the beginning and you can re use currentState
byte currentState = digitalRead(SWITCH2); //old line
Should look like this:
currentState = digitalRead(SWITCH2); //after byte is removed
Just remove the byte at the beginning and you can re use currentState
byte currentState = digitalRead(SWITCH2); //old line
Should look like this:
currentState = digitalRead(SWITCH2); //after byte is removed