Complex sentence: It burns for a long period and when they are kept away they douse automatically.
Split into simpler sentences: It burns for a long period. However, when they are kept away they douse automatically.