RAID_ZERO:
Riva:
Probably a better idea to use a timer interrupt that fires every x milliseconds and read/store the analogue pin value for main code to pickup and react on.This would probably be the best idea for my project. How would i go about setting up a timer interrupt.
I've had good luck using mstimer2 library for things like that: