Dishwasher burned control board

DW has had burning smell for a week or so when running. Today black smoke coming from control area. Took cover off…found control board all melted. Found replacement on this site for $80. Don’t mind fixing…but, what causes this? Is it going to happen again? Thanks, Mark

A model number may help others help you.