Nah Nick is correct lloyd I didn't know whether to post my complete new code as part of this topic or in a new one and when you replied I decided to put it here.
Ah I didn't know about that thing,thanks for the heads-up Nick.
It's part of a project and I was supposed to show it off tomorrow but ran into big problems when I had to do some proper coding.
The sensor is pretty much going to be active 24/7. And I've spent the last 10 or so hours making sure the display is working and finally about an hour ago its working flawlessly. The sensor input went wonky a few times but that as well seems to be gone.
Thanks for replies folks.