Hi i am trying to connect the obstruction sensors on my garage door to the GPIO pins on a raspberry pi computer so i can monitor the state.
Since the garage door sensors runs on 6v and my raspi runs on 5v i was told to use a zener diode tied to ground, and a resistor to connect it to the raspi without frying it.
Is this hardware going to do what i want safely? (drop the 6v down to 5v so i can read the signal on the Pi and do something in software when i see a state change)