It seems you didn't read the link in #2 (or you would have known how to post code properly - i.e. use code tags around it - and please format it properly, do CTRL-T in the IDE), and you also didn't post the circuit diagram as requested, without which it's pretty hard to see what's going on.