LED anode connected to digital pin 13.
Infrared proximity switch connected to digital pin 2.
This variable will read the value from the sensor.
Declare LED as output
Declare infrared sensor as input
Read input value
Check if the input is HIGH.
LED is off
LED is turned on