The E41 code means that the control board sensing a bad door latch.
Remove the door latch and check the resistance of the PTC (brown wax motor). Should be around 1500 ohm.
Check connectors at the latch and control board, wire harness.If the resistance is way off - replace the door latch.
Post the model number and I'll get you the part.
Find Appliance Parts at AppliancePartsPros.com - Largest inventory in the U.S. with 91% of all in-stock orders delivered within 2 business days. Thousands of photos and diagrams make it very easy to find the right part. Enter your appliance model here.