Bob, I'm using the WEMOS D1 mini, which can be powered by 5V, but the GPIO pins are actually 3.3V. I am providing power with a 7805 voltage regulator and a couple of capacitors, but this post is about stepping down the voltage to the digital input pins. I will use what's been discussed above, with a Zener that's at or just below 3.3V.Which Arduino board are you using? Some of them have a built in voltage regulator.
Bob