I took the microwave case off and checked each switch after it started turning on when opening the door. One switch had shorted out. The switch board had a couple parts which broke as it seemed to be a bit brittle so I replaced that as well. The microwave is back to normal.