@roy-boy
did you tried avaiable samples?
https://docs.pycom.io/chapter/tutorials/lopy/lora-mac-nano-gateway.html
https://docs.pycom.io/chapter/tutorials/lopy/lopy-lopy.html
analog sensor can by read by ADC
https://docs.pycom.io/chapter/tutorials/all/adc.html
https://docs.pycom.io/chapter/firmwareapi/pycom/machine/ADC.html
especially look at attenuation to read in some range