Welcome to Sicily Janet R!
There is no dress code.
Except for churches where it would be respectful to cover knees and shoulders in churches.
You might consider October and November warm months, but Sicilians would be in winter dress.
You're a tourist so dress comfortably.
And especially shoes that are comfortable and grip if you intend to walk those charming cobblestones of Erice.