Input triggered when hand gets close

Hello,

I have an issue where my electronics wired up to an input on my arduino is being triggered when my hand gets close to it. It's not wired to a photo sensor or anything, the input should only be triggered when two contacts are closed.

Any suggestions on where I should start to fix the issue? I'm sure you have many questions...

Thanks

I'm sure you have many questions...

No this happens when you use an input pin with nothing connected to it.

Use the pinMode(pin, INPUT_PULLUP) call in the setup menu.

Then the input will only trigger ( give a LOW when read ) when the input is connected to ground.

See http://www.thebox.myzen.co.uk/Tutorial/Inputs.html for the full explanation.

Grumpy_Mike - you make me not grumpy. That seems to have fixed the issue.

THANKS!