AND gate not giving correct output

Grumpy_Mike:

ReverseEMF:
The proper way to do it is to remove the wire, that is connected to +5V, when you want an input to be low. When the wire is connected, that is a high. When you remove the +5V wire, the resistor pulls the input low [thus the moniker "pulldown"] .

Rubbish.
You can quite happily connect a logic gate’s input to ground.
Have you ever worked with logic gates? I suggest you review that entire post and have a think about it.

HAH!

i'm a n00b about to start something similar and even i can say "removing 5V wires for a low" is not accurate.

i'm going with a cheaper setup of Logic gate chips; 4011, 4071 and 4081 - and HIGH/LOW is just a matter of connecting (pulling, or whatever) an input to EITHER the Vcc(?) (for HIGH or a '1') or to GND (for LOW or a '0').