I am looking to take 5v output from the pi and run it to a simple switch (e.g. a door open/closed sensor), back to the Pi's GPIO and detecting if there's voltage or not. I can do the programming, but I'm rusty on the actual wiring. If I understand it, the 5v needs to be be dropped down to 3.3v to not kill the GPIO.
I have done this once before...I have the "switch" dangling above my sump pump pit and if the water rises to high, it completes the circuit and the GPIO is seeing a different value than it normally sees. Problem is, I can't take a look at my current setup to do a new one for a friend.
Will this setup work without killing the pi, and allow the GPIO to listen for a 0 or 1?
Thanks.
