Welcome to the Arduino forum, @sandhurstboy !
Please take the time to read
a bit more carefully, as your use of code tags is flawed. I haven't the ability to clean it up for you, so it's up to you. Try this:
In the Arduino IDE, with the code you wish to post, press ctrl-T.
That will properly format the code, for easy reading.
Then, press ctrl-shift-C to copy the code COMPLETE WITH FORMATTING for the forum,
Then, in a new message, press ctrl-V. That will insert your code, with forum formatting.
Now. Instead of putting your problem statement in the Title of the post, please write a short paragraph explaining what you're doing, and what the code is/is not doing. If you need to, copy output from the Serial Monitor into another code block, and explain what it is you want.
Thanks!