Change type int to long due to arduino