GE Oven error codes

Which sensor ? The F2 code also shows ‘door locked’ msg although the door is unlocked. There is a sensor that looks to tie into the door latch so I pulled the wires from that thinking it would open the switch and therefore cause the error to not reappear, not so same result same error code/msg.