I am working on this simple circuit, which uses a BC547 transistor to switch ON a LED when trigged by a switch.
The scenario is the switch is connected after a long wire about 20 meters.
Issue: When I connect the long wire, even though the switch is in the off state or not connected, the LED starts glowing with lower brightness.
Later when I checked if I am touching the base side of the switch wire with bare hands the LED glows with full brightness.
Can anyone understand why this is happening and how can I avoid it?