Lightning bug adults produce a heat-free source of light through a biochemical reaction. The light flashes are used to attract mates. Different species have different flash patterns and are active at different times during the evening.
What does this have to do with pest management? One of the many great aspects of lightning bugs is that the larvae of some species are predatory on snails and slugs!
From: Steve Bambara, NCSU Extension Entomologist