// When first time program launches it confused to press push button twice. Well replace it with this
if (x == 1) { // Toggle on digitalWrite(ledPin, HIGH); x = 0;
// When first time program launches it confused to press push button twice. Well replace it with this
if (x == 1) {
// Toggle on
digitalWrite(ledPin, HIGH);
x = 0;
} else {
// Toggle off
digitalWrite(ledPin, LOW);
x = 1;
}