How to activate LCD screen prompt using an Ultrasonic Sensor

So I am currently trying to use an ultrasonic sensor to activate an LCD screen with text. The problem is, is that the text only shows when the US sensor is working within its defined range. Basically, what i want is so that when the ultrasonic sensor is “tripped” the text on the LCD will stay even if the US sensor is “untripped” so the LCD can continue down a path of different prompts such as it asking the user for input through a different type of sensor.

[Currently the LCD screen will only display text when the US sensor is triggered]

If anyone could help me with this that would be great! I am fairly new to coding Arduinos.

#include<UltraDistSensor.h>
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);

UltraDistSensor mysensor;
float reading;

int screenWidth = 16; //Screen Width
int screenHeight = 2; //Screen Height
String line1 = "     Hello!"; // LCD line1 = static
String line2 = "What would you like to know?"; // LCD line2 = scrolling

// just some reference flags
int stringStart, stringStop = 0;
int scrollCursor = screenWidth;

void setup() 
{
    lcd.init(); // initialize the lcd 
    lcd.backlight(); //LCD Backlight turned on
    Serial.begin(9600);
    mysensor.attach(12,13);//Trigger pin , Echo pin
    lcd.begin(screenWidth,screenHeight);
    
}

void loop() 
{ 
  reading=mysensor.distanceInCm(); //Sensor Reading in cm
  lcd.setCursor(scrollCursor,0);
  if (reading < 100) 
  {
    lcd.display();
    
      lcd.setCursor(0, 0);
      lcd.print(line1);
      lcd.setCursor(scrollCursor, 1);
      lcd.print(line2.substring(stringStart,stringStop));
      delay(400);
      lcd.clear();
      
      if(stringStart == 0 && scrollCursor > 0)
      {
        scrollCursor--;
        stringStop++;
      } 
      else if (stringStart == stringStop)
      {
        stringStart = stringStop = 0;
        scrollCursor = screenWidth;
      } 
        else if (stringStop == line2.length() && scrollCursor == 0) 
      {
        stringStart++;
      }
      else 
      {
        stringStart++;
        stringStop++;
      }
  }
  else
  {
    lcd.noDisplay();
  }

}

The ultrasonic sensor is not tripped or untripped. There is a time that is required for the pulse to travel out and back, after it hits a solid object. That time is a function of the distance.

UltraDistSensor mysensor;

Well, who else’s sensor would you be using?

  reading=mysensor.distanceInCm(); //Sensor Reading in cm
float distanceInCM = mysensor.distanceInCm(); // No silly comment needed
  else
  {
    lcd.noDisplay();
  }

If you don’t want the LCD to stop displaying, when the user walks away, why do you turn it off? How can the user interact with the display after walking away?