ATTINY85 and Photoresistor

Hi there,

I am trying to mockup a project where I use an ITTINY85 to read the value of a photoresistor.
I followed the steps and validated with many sources but it still does not work

I checked mainly the 2 following posts:
Project Hub
Instructables

And that is only 2 of the many sources, I found many others that seem to go the exact same way.

I am using tinkercad to do the preliminary tests before actually trying in the real world.
Attached to this post, you can find a screenshot of the setup and here is the simple code I am using:

ATTINY+PHOTO.png

void setup()
{
  pinMode(PB3, INPUT);
  pinMode(PB0, OUTPUT);
}

void loop()
{
  int value = analogRead(PB3);
  
  digitalWrite(PB0, value);  
  
  delay(250);

}

I know that I'll need to do something to get the led to properly work in this setup but the thinkercad allows me to add break points and change the "light intensity" seen by the photoresistor and no matter what I do, the value I get in the "value" variable is always the same.

Is there something obvious that I do not see?
Can someone tell me where I'm getting this wrong?

Extra notes:
The led resistor has a value of 220ohm and the photoresistor's resistor has a value of 10 Kohm
The whole circuit is powered using a 3v CR2032.

I could potentially share the thinkercad "project" if need be but I'm not too sure how to do it.

Thanks,

ATTINY+PHOTO.png

digitalWrite()
[Digital I/O]
Description
Write a HIGH or a LOW value to a digital pin.

If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.

If the pin is configured as an INPUT, digitalWrite() will enable (HIGH) or disable (LOW) the internal pullup on the input pin. It is recommended to set the pinMode() to INPUT_PULLUP to enable the internal pull-up resistor. See the Digital Pins tutorial for more information.

If you do not set the pinMode() to OUTPUT, and connect an LED to a pin, when calling digitalWrite(HIGH), the LED may appear dim. Without explicitly setting pinMode(), digitalWrite() will have enabled the internal pull-up resistor, which acts like a large current-limiting resistor.

I think what you are looking for is analogWrite