This is a common question for English speakers: which is correct.? As usual, the real answer is complex, and possibly even interesting. But first, the simple answer: we use hung to refer to hanging an inaminate object, and hanged to refer to hanging a person. And if you find that hard to remember, don’t worry!: there are plenty of people out there who will be more than happy to correct you if you get it wrong! But I wonder: would they be able to explain to you why you’re wrong?
Hung or Hanged?