PBS Arduino code