Copy
if
sensor_value
>
500
:
led.
on
()
else
:
led.
off
()