Without a schematic of your connections and the code that you are having trouble with, it is difficult to offer a solution.