To obtain a patent, your invention must meet a number of legal requirements:
Novelty: The invention must not be publicly known anywhere in the world, not even through your own action, before the filing date;
Inventive step: The invention must not be obvious to a person skilled in the art;
Industrial applicability: The invention must offer a result in the industrial domain; it must be a product or production process with technical characteristics.
Some countries have different requirements for a patent. Ask your patent attorney for advice.
Some countries offer the option of a utility model: The legal requirements may differ, and may, in particular, be less stringent and therefore more easily achievable. Ask your patent attorney for advice.