Thanks Tom, really good advice. I was actually using analogue inputs, added letter A to pin numbers and now it is working.