Please explain the code

Put whatever voltage you want the AREF to be into the AREF pin of the Arduino.

...as the long as it is less than or equal to the supply voltage.