print('hello , press the green button')
from machine import Pin
from time import sleep
#LED is connected in D2
led = Pin(21, Pin.OUT)
#push button is connected to pin Pin 22
push_button=Pin(11, Pin.IN)
#Let s create a loop for the press button
while True: # If the button is pressed, turn ON the LED
logic_state= push_button.value()
if logic_state==True
led.value(1)
else: #if the button is released, turn off the LED
led.value(0)