That sounds like the inputs are floating (unconnected, no weak pull-up / down) and when your hand goes near, the capacitive effect is causing the inputs to change.when I put my hand near my Arduino it starts reading random inputs
I'd confirm your connections to start with.
Regards