Smallest microcontroller?
I don't know whether it's really the smallest you can find but... The
ATtiny84 has an ADC, more digital pins than you need, and is
available in 3 mm packages (UFBGA and VQFN). There is also an
Arduino-compatible core available for it.