You got off on the wrong foot on the previous thread(which I know, this is just a part of). Now you open a new thread(against forum policy), and ask an open-ended question for which there are any number of correct answers, mine included.
Please, read and digest:
You really need to post, at minimum, your code attempt, a coherent description of your project, and perhaps a schematic.
Thanks