How do you attract birds to a nesting box?
Unless there are trees or buildings which shade the box during the day, face the box between north and east, thus avoiding strong sunlight and the wettest winds.
Make sure that the birds have a clear flight path to the nest without any clutter directly in front of the entrance. Tilt the box forward slightly so that any driving rain will hit the roof and bounce clear.
House sparrows and starlings will readily use nestboxes placed high up under the eaves. Since these birds nest in loose colonies, two or three can be sited spaced out on the same side of the house. Keep these away from areas where house martins normally nest.
Two boxes close together may be occupied by the same species if they are at the edge of adjoining territories and there is plenty of natural food. While this readily happens in the countryside, it is rare in gardens, where you normally can only expect one nesting pair of any one species. The exceptions to this are house and tree sparrows and house martins, which are colonial nesters. By putting up different boxes, several species can be attracted.