Please help me with building a paper tape reader (punched tape)

I don't think that you need an analog input pin. Why don't you use a Schmitt trigger?