What kind of bait could be used to attract insects?

I have to collect insects for school, and, especially dragonflies are hard to catch, even though there's a ton of them around. Is there anything in the house, maybe sugar or something that will attract stuff like dragonflies, wasps, butterflies, etc?

If this is in the wrong section, I apologize. I never have had to ask something like this.

Insects eat different things research the food for each type. If you use a plastic bottle with the top cut off and inverted into it, you can make a trap. For yellowjackets, some raw meat in the bottle will attract them. You will need to be able to kill the insects maybe a spray. A banana peel should get fruit flies, sugar or syrup will get you houseflies. Dragonflies are predators, they eat waterborne insects do some research. Good luck.

Butterfly Dragonfly Linen Crewel Stitchery Kit NIP
Butterfly Dragonfly Linen Crewel Stitchery Kit NIP
$9.00
Time Remaining: 9h 11m
Buy It Now for only: $9.00

Butterflies+Dragonflies Machine Embroidery Designs 4x4
Butterflies+Dragonflies Machine Embroidery Designs 4x4
$15.00
Time Remaining: 12h 39m
Buy It Now for only: $15.00

EMBROIDERY TRANSFER PATTERNS BUTTERFLIES  DRAGONFLIES
EMBROIDERY TRANSFER PATTERNS BUTTERFLIES DRAGONFLIES
$4.99
Time Remaining: 1d 23h 4m
Buy It Now for only: $4.99

New Aunt Marthas Dragonfly Butterfly Pattern Transfer
New Aunt Marthas Dragonfly Butterfly Pattern Transfer
$2.75
Time Remaining: 7d 19h 36m
Buy It Now for only: $2.75

Butterflies  Dragonflies Aunt Martha Hot Iron Transfer
Butterflies Dragonflies Aunt Martha Hot Iron Transfer
$2.95
Time Remaining: 13d 18h 59m
Buy It Now for only: $2.95

Butterflies  Dragonflies on Flowers Embroidery Pattern Stitch Paint Crafts
Butterflies Dragonflies on Flowers Embroidery Pattern Stitch Paint Crafts
$2.49
Time Remaining: 22d 8h 49m
Buy It Now for only: $2.49