Analog sensors are working weirdly

I have encounter a prob as analog sensors such as LDR.I have discovered that it will show value 1000 no matter what.
Any clue on how to solve this issue?

#include <SoftwareSerial.h>
SoftwareSerial SwSerial(2, 3); // RX, TX
#define BLYNK_PRINT SwSerial
#include <BlynkSimpleSerial.h>

int lol;
int analogVal;
int ldrval = A0;
int piezo = 7;

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "1075eabe10f14964b774c719c2510e34";

void setup()
{
  SwSerial.begin(9600);
  Blynk.begin(auth);
  // Default baud rate is 9600. You could specify it like this:
  //Blynk.begin(auth, 57600);
}

void loop()
{ 
  Blynk.run();
  
  analogVal = analogRead(A0);
  if(analogVal>600) tone (7,262,250); delay (250);
  
  if(analogVal<600) noTone (7);

}

BLYNK_WRITE(A0)
{
}

This is the old code , I have made another one which I will upload when I get home

Same question as for your LDR thread, which Arduino board are you using?