A recent study published states dogs can tell by your odor when you are stressed. I feel like humans have know this for a long time but now it isn’t a myth. You can read the report here –https://www.nature.com/articles/s41598-024-66147-1
I know that my Podengo Pequenos can sense when I am stressed at home or worse when I’m stressed at a show. It goes right down the lead.