Fireflies are beetles. To find a mate, they flash each other coded messages. Each species has its own special pattern. How do they get their glow? They have light organs located under their abdomens. They can produce light with almost no heat.
For more, check here:
Have you seen a Firefly lately?