Thank you. Although my initial post was based on voltage dividers, I currently plan to use a constant current source. Still, I appreciate the post, and I'll take the opportunity to analyze these analog switch ICs.Use analog switches or MOSFETs controlled via MCU GPIOs instead of mechanical switches (S1–S8), for automatic control.
Among Analog Switch ICs, you can choose CD4051 8:1 mux, 74HC4051 or ADG708. Or use N-MOSFETs/P-MOSFETs (with proper gate drivers). You have to use 3.3V as ADC reference to match the top of your divider. Add a small capacitor (e.g. 0.1 µF) between ADC input and GND to filter noise. Following are some designs that you may use for references.
https://www.hackster.io/Costalegre/auto-ranging-ohmmeter-6fa4af
https://www.pcbway.com/project/shar...e_Meter_without_microcontroller_a98f1825.html
https://simple-circuit.com/arduino-auto-ranging-ohmmeter-lcd/