Subject and Depth of Field
Since the opening is small, the depth of field --- the zone in focus --- is vast. A pinhole camera is ideal for shooting a number of different subjects that require significant depth of field, such as landscapes and other vistas where you want most of the main image in focus.
Exposure
Exposure is controlled in cameras by the length of time the shutter remains open and the size of the hole (aperture) the light travels through. With a pinhole camera, the only variable you have control over is the length of time. It is a good idea to "bracket" your exposures. If your exposure time is 30 seconds, then you should make three exposures. The first exposure at 30 seconds then two bracketed exposures at 15 seconds and at 45 seconds. Using this approach will help you achieve a good exposure.
Tripod and Table
Since exposures in a pinhole camera take a long waiting time, using a tripod or table to rest the camera on is suggested. Using a table or tripod will assist in minimizing camera shake, allowing you to accurately assess the sharpness of your images.