Bonjour Vanessa !
"demeurer" is one of these verbs that can take either avoir or être as auxiliary in compound tenses.
Here is a link to the related lesson:
Demeurer can be used with avoir or être in compound tenses depending on its meaning in French (Le Passé Composé)
I hope that's helpful!
À bientôt !