my link works just fine for me.
look at what you have:
#define trigPin 12
#define echoPin 11
trigger on pin 12, echo on 11. it doesnt matter what pin; any digital pin will do.
you could use map() instead of all the if statements: map() - Arduino Reference