Light traps are a good way to attract moths and other nocturnal insects for species documentation. Because your intentions are unclear from your post, I do want to add a note that light traps should be used somewhat sparingly. Sustained outdoor lighting (every/most nights) is not a sustainable way to attract insects to your yard. If you are looking to increase your yard’s insect diversity, reducing light pollution and planting native plants are the better route.
A relevant thread:
Ethics of Attracting Moths to Light