Question: how does a camera on a phone work?
Answer: Light enters the lens. The aperture determines the amount of light that reaches the sensor. The shutter determines how long the sensor is exposed to light. The sensor captures the image.