from machine import Pin,ADC ldr = ADC(Pin(26)) ldr_val = ldr.read_u16() print(ldr_val)