Complex sentence: The adults are nocturnal and are attracted to light, while their larvae feed on rotting wood or roots.
Split into simpler sentences: The adults are nocturnal and are attracted to light. Their larvae feed on rotting wood or roots.