https://diyprojectslab.com/raspberry-pi-pico-adc-tutorial/
Raspberry Pi Pico ADC | Tutorial