Day 8 of Learn Coding with Arduino — your first analog input. Read a potentiometer knob, print numbers to the Serial Monitor, and use PWM to dim an LED smoothly.
Day 9 of Learn Coding with Arduino — wire up a photoresistor (LDR) to read how bright the room is, and use a threshold to decide if it’s dark enough to turn on a light.