Led FADE

Fading the Led —-

Fading the Led with a switch —–

code

Then I was playing with a infra-red proximity sensor. I wanted to change light color according to proximity, but that didnt happen. I did however learn how to read the readings on the serial monitor, which shows that it is working and reads different numbers and different proximity to the sensor.