I connected my keypad to my UNO and coded it using the code from How to Set Up a Keypad on an Arduino - Circuit Basics
Using the keypad library. Wiring has no shorts. All keypad rows and column pins plugged into there correct arduino pins(pin9-pin3)
When i upload the sketch. The serial monitor just shows '1' and nothing else. And i didnt even press any key as yet. And if i press any key. I dont get any output on the monitor.
I have checked all the wiring. To get an output "1". Pin9 and 5 have to be shorted. I checked with a multimeter over and over .all pins..no shorts.
Interestingly even with the keypad unplugged from the arduino. It still displays "1".
Could it be a fault with the uno? Or code?
Its really frustrating.
Kindly assist in any way possible