A pinhole camera is a simple optical device that can be used to create an image of an object. It consists of a light-tight box with a small hole on one end and a photosensitive material on the other end. Light enters through the small hole and projects an inverted image of the object onto the photosensitive material.