from gpiozero import MCP3002 ch = MCP3002(channel=0) while True: value = ch.value print(value)