The wiring of the pot in the photo looks correct to me, assuming it is a normal pot with the wiper being the middle connection.
but why Arduino needs it?
My Arduino burned up... I am literally crying. After one year and an half of service. I tried to upload blink sketch and it works but after a while the atmega328 starts to heat... I'am so sad =(