from microbit import *
while True:
light_level = pin0.read_analog()
print(light_level)
sleep(500)
Copyright ⓒ TECH79 All right reserved