Patents protect the way things work – whether it is a new product, or a new way of doing things.
Only inventions that meet the legal criteria for “novelty” and “inventive step” will be eligible for a 20 year monopoly.
You MUST keep your new invention secret! Don’t sell it, use it commercially, or tell other people about it before you talk to us. If you do, it will no longer be “novel”.