I solved my problem. I had first connected the pins as it said in the comments, but that was wrong, as you can see if you look at the code. I changed the wires now to the right pins and it's working. :D -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics