Handle analog inputs