wanisuh
contestada

He opened the door, then the lights came on and everybody shouted, ‘Happy Birthday’.

Is "then" there a conjuction or an adverb? How do we know when "then" is used as an adverb or conjunction? Can someone please elaborate. Thank you in advance.​