Arduino Reset Issue

Hey guys,

I’m brand new with Arduino and working on a small project using the mega. I linked up a liquid crystal display and two buttons with the code (below). The code will not load when the reset is connected. When it’s disconnected, it loads but will not reset the screen after it runs.

Any feedback helps - thanks.

#include <LiquidCrystal.h>
#include <Servo.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Servo servo1;
Servo servo2;
const int resetPin = 13;
const int buttonOne = 22;
const int buttonTwo = 23;
int selection1SwitchState = LOW;
int selection2SwitchState = LOW;

void setup() {
  
  digitalWrite (resetPin, HIGH);
  Serial.begin(9600);
  lcd.begin(16,2);
  pinMode(buttonOne, INPUT);
  pinMode(buttonTwo, INPUT);
  pinMode(resetPin, OUTPUT);
  Serial.print ("User is making a selection");
  lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Please Make");
  lcd.setCursor(0,1);
  lcd.print("A Selection");
  
}

void loop() {
  
  while (selection1SwitchState == LOW && selection2SwitchState == LOW) {
    selection1SwitchState = digitalRead(buttonOne);
    selection2SwitchState = digitalRead(buttonTwo);
    delay (25);
   }

  if (selection1SwitchState == HIGH && selection2SwitchState == LOW) {
    lcd.clear ();
    lcd.setCursor(0,0);
    lcd.print ("You chose");
    lcd.setCursor (0,1);
    lcd.print ("Selection 1");
    Serial.println ("User Chose Selection 1");
    delay (3000);
    Serial.println ("Saying Thank You");
    Serial.println ("Rest Will Happen Soon");
    lcd.clear();
    lcd.setCursor(0,0);
    lcd.print("Thank You");
    delay (2000);
    digitalWrite (resetPin, LOW);
  }

  if (selection1SwitchState == LOW && selection2SwitchState == HIGH) {
    lcd.clear ();
    lcd.setCursor(0,0);
    lcd.print ("You chose");
    lcd.setCursor (0,1);
    lcd.print ("Selection 2");
    Serial.print ("User Chose Selection 2");
    delay (3000);
    Serial.print ("Saying Thank You");
    Serial.print ("Rest Will Happen Soon");
    lcd.clear();
    lcd.setCursor(0,0);
    lcd.print("Thank You");
    delay (2000);
    digitalWrite (resetPin, LOW);
  }
}

Give us a circuit of how you have the switches wired.

Weedpharma