Faster ADC on Arduino R4 Wifi

can you explain why you think analogRead is too slow?

the code would be better written as a state machine (Yet another Finite State Machine introduction) rather than having all those blocking while loops