Help with SGM58031 ADC Edgebox-ESP-100

Many thanks for your reply. When I run your code I get the “Failed to initialize AIs.” so it is the ADC not responding rather than a gain issue. I will try powering the digital I/O as you did - perhaps this also supplies feeds the ADC.