If your dog isn’t giving you an obvious signal that they need to go out (like whining at the door) I suggest teaching them to ring a bell when they need to go outside. Some of the other signs dogs give that they need to go out such as pacing around or circling can be easy to miss if they’re in another room, which is why a noise based signal such as ringing a bell can make things easier.
You can use potty training pads to give a puppy a place to go inside. They are usually scented in order attract dogs to urinate on them. This can be an aid in potty training and may seem necessary depending on your situation. But, it can also cause some problems that may prolong the training period and make it more difficult. Using pads can confuse a puppy into thinking that it is OK to go inside.
The process is the exactly same for older dogs as it is for puppies; prevent accidents from happening by using baby gates and a crate if possible, create a predictable schedule, learn to recognize your dog’s potty signals, accompany your dog outside and immediately reward for all outdoor elimination, properly clean any accidents and supervise your dog until you’re sure that he understands the rules.