The Pinhole Camera
You can make a camera from a shoebox, a sheet of thin paper, and a pin. Cut a small square out of one end of the box and tape the paper over it to make a screen. Then poke a tiny hole in the opposite end. When you point the hole at a bright window and look at the screen from inside a dim room, you will see a small picture of the scene outside.
The picture appears because light travels in straight lines. Light bounces off every part of an object in all directions, but only a few thin rays from each spot can squeeze through the tiny hole. Rays from the top of the object travel downward after they pass through, and rays from the bottom travel upward. The rays cross at the hole, so the picture on the screen is upside down.
The size of the hole matters. A very small hole lets in only a narrow beam from each spot, so the picture is sharp but dim. A larger hole lets in more light, which makes the picture brighter, but the beams spread across a wider patch of the screen, so the picture turns blurry.
Long before modern cameras, people used dark rooms with a small hole in one wall to watch the outdoors and to help them draw. Today's cameras use glass lenses to gather more light while keeping the picture sharp.