1#define IRpin 22#define ledPin 133voidsetup(){4// put your setup code here, to run once:5pinMode(IRpin,INPUT);6pinMode(ledPin,OUTPUT);7}89voidloop(){10// put your main code here, to run repeatedly:11 int IRread =digitalRead(IRpin);12digitalWrite(ledPin,LOW);13if(IRread ==0){14digitalWrite(ledPin,HIGH);15}16}