Arduino: Changed the ADC to interrupt-based