LDR darkness sensor project -1 circuit configuration same as two legged switch only pin connects to A0 analog side.