photo sensor

when i plug 5v to the sensor it read too high i mean the degree but when i plug 3.3v it is normal what is the problem??

int led = 13;
void setup () {
Serial.begin(9600);
 pinMode(led, OUTPUT);
  
}
void loop () {
int value = digitalRead(A1);
int value1 = analogRead(A1);
Serial.println(value1);
if (value == LOW) {
 digitalWrite(led, HIGH);

}
else
{
 digitalWrite(led, LOW);
 }
delay (1000)  ;
  
}

Your code doesn't make any sense to me, what you are trying to measure?

what is the problem?

What is the sensor?