Embed presentation
Download to read offline

The NAND gate has two inputs - one connected to a switch and one to an LDR. If either the switch is closed or the LDR detects light, it makes one of the inputs low, causing the output to go high and sound the buzzer.
