Arduino Nano isn't working well with Baud rate 9600 bps, why?

Your code worked on my Nano after I changed println(out) to Serial.println(out).

Pete