This should be done after dark, using a flashlight with a red lens or a lens covered with red cellophane. Bees and wasps cannot see red. Therefore, they will not be attracted to the light, although the operator can still see well enough to apply the pesticide. Most of these bees nest in the soil and often a large number of them will nest close together, usually in areas with sparse vegetation. Occasionally, some may nest in natural cavities such as in wood.
Sweat bees get their name from an attraction to people who are perspiring.
They rarely sting except when pinned against the skin. Some species of mining bees may be attracted in large numbers to swimming pools. All of these bees are beneficial because they pollinate plants. Controlling them is undesirable even if one could do so. When large numbers invade swimming pools, control them by treating the soil where they are nesting.