I had made a circuit for led strip using esp12e. I had also attached two button to change between colors on the strip. To make it compact I inserted the circuit board inside the casing of 12v supply. Its a metal box with power circuit and some empty space where my circuit fits exactly. Leds are working fine except the button inputs are throwing false positive signals, when open (floating). I had connected a pull down resistor to the input pin. Below is the schematic I used:-
And this is the actual circuit.
Please help me solve this issue. Without passing those wires from supply didn't cause such noisy triggers but I kind of wanted to put my circuit inside the casing.