Need help with "analogRead"

Hi,
I'm trying to send number "1" to the Serial Monitor if the value is 500 or smaller <500 from a sensor.
I know that my code isn't true, but this is what I did:

int RA = A0;

void setup() {
  
  Serial.begin(9600);
  pinMode(RA, INPUT);

}

void loop() {
  if(analogRead(A0)== 500 ){
    Serial.println("1");
    delay(200);
  }
}

Note: I'm an Arduino beginner.
Thanks !

if (analogRead(A0) <= 500 )
{
  // do something
}

BulldogLowell:

if (analogRead(A0) <= 500 )

{
 // do something
}

Thanks a lot !