Microphone electret Problem

Hi , i am still newbie for this arduino code . May i know what is wrong with this code ? thanks
i’m using Microphone Electret

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); 

int soundPin = A0;    // select the input pin 

int val = 0;       // variable to store the value coming from the sensor
int amp = 0;

void setup() {

  pinMode(soundPin, INPUT);
  Serial.begin(9600);      
  analogReference(INTERNAL); 
}

void loop() {
  
     Serial.begin(9600);
   lcd.begin(16, 2); 
  val = analogRead(soundPin);    // read the value from the sensor
  amp = (val >= 512) ? val - 512 : 512 - val; 
     
  if (amp > 500) {   
      lcd.print(" Noise " );    
    delay(100);   
  }   
  else {   
    lcd.print(" Normal " );   
  }   
  Serial.print("Val = ");
  Serial.println(val);
  Serial.print("Amp = ");
  Serial.println(amp);
 
}

i just wanna make it Noise or Normal …

sorry for my bad english :frowning: