# Write your code here :-)
from microbit import *
while True:
    reading = pin2.read_analog()
if (reading > 300):
    display.show(Image.SAD)
else:
    display.off()
4ff3f5d128f2c21ef8b222af4867f84bf97dbe50
<mask token>

<mask token>
while True:
    reading = pin2.read_analog()
if reading > 300:
    display.show(Image.SAD)
else:
    display.off()

from microbit import *
while True:
    reading = pin2.read_analog()
if reading > 300:
    display.show(Image.SAD)
else:
    display.off()

# Write your code here :-)
from microbit import *
while True:
    reading = pin2.read_analog()
if (reading > 300):
    display.show(Image.SAD)
else:
    display.off()