Update pin number and delay in Arduino code.