Hi,
I am a very new beginner to the Raspberry Pi, and I am wondering how I can programmatically detect if there is a current flowing through the circuit I built, connected to my Raspberry Pi 2 Model B. My circuit consists of a wire connected to the 3.3V volt pin on the GPIO (PIN #01), which is connected to a magnetic door switch on the breadboard, which then connects to a ground pin (PIN #06) on the GPIO. When the switch is open, the circuit is incomplete, and thus there is no current flowing through it, and vice versa when the switch is closed. Is there any way to programmatically detect if a current is flowing through the circuit? Please ask if you need more information.
Thanks a lot for your help.