new thermistor

My dryer has not been completely drying the clothes lately, so I read it could be clogged vent or replace the thermistor, which I did now I get error code E1 after a few minutes of drying, could it be the new part is bad?