OK - I'm providing NO help to this as the OP does not know what he/she is doing - he/she copies code from a web site and tells us that the code has been changed, but posts the original code from the site, AND posts the image from the site, and not the wiring they have actually wired up.
"it doesnt work. Any help? "
What does not work, what does happen, have you checked your connections.... How the F##k are we to know anything about there setup from the above description
Post the code you actually used, post the connections you actually have (a Photo is always nice - up close and in focus) and a list of what you have tried already, so we don't cover the same solutions twice.