I can figure out what is wrong with this simple sketch

Show the code you are now using.