set time on LED with button

I am trying to glow LED with push button using below code but LED is glowing without pressing push button.

#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
hd44780_I2Cexp lcd;

const int LCD_COLS = 16;
const int LCD_ROWS = 2;

int pushButton = 3;
int pinLED = 8;
int stateLED = 0;
int stateButton;

void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
lcd.begin(LCD_COLS, LCD_ROWS);
lcd.backlight();
lcd.setBacklight(HIGH);
lcd.setCursor(0, 0);

pinMode(pushButton, INPUT_PULLUP); // set up as Relay button
pinMode(pinLED, OUTPUT); // set up LED

}

void loop() {
stateButton = digitalRead(pushButton); // read pushbutton state at analog input

if (stateButton == 1) {
digitalWrite(pinLED, 1);
lcd.setCursor(0, 1);
lcd.print("HIGH ");
lcd.blink();
}
else
{
digitalWrite(pinLED, 0);
lcd.setCursor(0, 1);
lcd.print("LOW ");
lcd.blink();

}
}

When you use INPUT_PULLUP and the button is wired correctly (between pin and GND), the logic is reversed. So a 1 (or HIGH) indicates not-pressed.

Please read https://forum.arduino.cc/index.php?topic=148850.0 and pay special attention to point #7 about posting code.

You have necro'd and hijacked a 6 years old thread. Please contact a moderator and request that it be split off to a new topic. Please don't do this again.

@pankajsharma200

TOPIC SPLIT
PLEASE DO NOT HIJACK / NECRO POST !

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.