Buck converter, duty cycle has inverse relationship with Vout?
Are you measuring the duty cycle at the output pin of the Arduino by any chance?

Because if you invert the signal, as the transistor does, your duty cycle is the opposite of what you are measuring.