import RPi.GPIO as GPIO
GPIO.setmode (GPIO.BCM)
GPIO.setup (16,GPIO. IN)
GPIO.setup (19, GPIO.OUT)
#LED Output pin
while (True):
  print GPIO . input (16)
  if GPIO.input (16) 1:
  print "Night"
  GPIO.output (19,, 1) #Turn 0n LED
  else:
  print "Day"
  GPIO.output (19, 8) #Turn 0FF LED
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT