LCD Help?

Hello everyone. I am making an arduino program that responds to raceiver input, then displays on the LCD. The problem is, even when I don't have the transceiver hooked up, the lcd just scrolls through gibberish. Random characters etc. Here is my code, can anyone help me?

//Libraries
#include <SPI.h>
#include <Servo.h>
#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24_config.h>
#include <LiquidCrystal.h>

RF24 radio(8, 9); // CE, CSN
const byte addresses[][6] = {"00001", "00002"};

const int rs = 7, en = 6, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

int button = 10;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  pinMode(button, INPUT);
 
  radio.begin();
  radio.openWritingPipe(addresses[0]); // 00002
  radio.openReadingPipe(1, addresses[1]); // 00001
  radio.setPALevel(RF24_PA_MIN);

  lcd.begin(16, 2);

}

void loop() { 
  if(digitalRead(button) == LOW){
      radio.stopListening();
      lcd.setCursor(0,0) ;
      lcd.print("EMERGENCY");
      lcd.setCursor(0,1);
      lcd.print("OFFICE");
      Serial.print("EMGERGENCY");
  }
  else{
      radio.stopListening();
      lcd.setCursor(0,0) ;
      lcd.print("ALL");
      lcd.setCursor(0,1);
      lcd.print("CLEAR");
      Serial.print("Clear");
  }
  

}

How is the inout pin wired ?
Do you have a pullup or pulldown resistor on it ?

UKHeliBob:
How is the inout pin wired ?
Do you have a pullup or pulldown resistor on it ?

I don't have either. I have it on one side of the button, and the other side is connected to ground. When the button is pushed, port 10 is grounded. When port 10 is grounded it gives a HIGH input. It's kind of weird.

Try using INPUT_PULLUP in the pinMode() to activate the built in pullup resistor and wire the switch to take the pin LOW when activated

Can you check out this video? The lcd is still being really weird. It works once then stops.

Can you check out this video?

No. There is no reason to watch a video of some behavior when you have been told to make changes to the code, and you have not done so, or you have not posted the revised code.