Fridge door Alarm
http://www.electronics-lab.com/projects/sensors/011/index.html
Explanation (based on the existing explanation):
With the door closed the interior of the fridge is in the dark, the photo resistor R2 has a high resistance (>200K) thus clamping IC1 by holding pin 12 which is the RESET PIN at high logical state (logical 1) so the internal counters don't count and all output pins (Qx) are at logical 0.
Pin 12 has a voltage [R2/(R1+R2)]*VDD where VDD is the battery voltage. The result is a volatge close to VDD which is a logical 1 and clamping 4060 to reset state.
When a beam of light enters from the opening, or the fridge lamp lights, the photo resistor lowers its resistance (<2K), pin 12 goes low (0 logical state) and IC1 starts counting.
IC1 starts counting means that the internal oscillator goes ON and it is producing a square wave with a frequency which is set by R3, C1 and give out from the form (depending on datasheet):
f=1/(2,2*C1*R3) => f=454 Hz
This square wave is taken out from Q14 with a result frequency
f/(2^14)
and from Q7 with f/(2^7)
So the output waves Q14 and Q7 look like this:
after a preset delay (around 20 seconds in this case) the piezo sounder beeps for 20 sec because the low output of Q14 makes D1 ON =>Q1 ON. Then stops for the same lapse of time (Q14 is in high state and D1 is OFF => Q1 is OFF) and the cycle repeats until the fridge door closes.
D2 connected to pin 6 of IC1 makes the piezo sounder beeping 3 times per second.