There’s a similar parallel post to yours @MarkK. It may not seem obvious at first but what you and the other poster(s) are asking is all about “training”.
You may find reading that whole thread enlightening. Yours is a common question. My best-practice answer is currently: think lazy; use a smartplug.