

//Sample Code 2-1:Item Two—Sensor Light
The IR sensor is the input unit; the LED is the output unit. They are initialized in the setup() function.
Make a model of a ghostly face with flashing LEDs inside it. You can change the interval of the LED flashing to make them quicker or slower for different effects. It would be great for a haunted house!