Issues Reading an encoder

Yes, I assume it would be a better practice to declare "end" as unsigned long, especially since this is how "start" is declared and in the code they are being compared. Anyway, this doesn't help me.