Fixed pin setup in arduino code.