After reading this far, you should be aware of the available interrupts on your ATmega328P and how to start using them. Maybe it would be nice to have a real-world example project to practice with?
A project that I have in the prototype stage right now is an Arduino-powered night light, which illuminates an LED when the light level in a room falls below a preset ...