Read port for arduino as an integer