If I make any mistake I apologize in advance. I don't have much electornics knowledge learned whatever I know is learned through this forum and google.
input pin has diode to protect pin from negative polarity.
pin 5 is a digital pin, that mean Voltage over 3V count as HIGH and under 2V as LOW.
Are you sure the measured signal reach over 3V?
@dragonzone , your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project.