Made adc a threaded process to speed up main loop (adc includes blocking functions)