The forum is for helping people to learn to use the Arduino microcontrollers. It is not a free code writing service. If you want help, read the forum guidelines, post your code. Tell us what the code does and how that differs from what you want. If there are compilation errors, please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.
If you want some one to write code for you, flag your post and ask to have it moved to the Gigs and Collaborations section where members that code for money are more likely to see it.