Hi! My yorkie's name is errol. He is one year and nine months old. He's a very sweet dog

He lies beside me and my husband everyday when going to sleep. But up to this time, I am having difficulty in housebreaking him. Are they really difficult to housebreak? Everyday when I woke up in the morning, I always see his pee everywhere inside the house

I have tried training him using the crate method. It does work though, but not at all times. Sometimes, we go outside but he won't pee. It's a good thing he don't pee on the carpet. I really need to housebreak him because I'm tired of cleaning his pee every morning and it's giving me a headache and I don't want to get angry at him. Please help me
I would appreciate if someone will give me an advice or suggestions on this problem. Thanks!