Sorry. It should read pin 3. I miss this in the question pinMode(3,INPUT_PULLUP); But it is present in the actual code. Thanks for the input.
Sorry. It should read pin 3. I miss this in the question pinMode(3,INPUT_PULLUP); But it is present in the actual code. Thanks for the input.