Hi Ian, sorry I'm a little confused. Pin 5 wouldn't have any voltage once you configure it to an input, instead it's listen for voltage between 0-3.3v.
GPIO 5 is connected to CH 1 or pin 1 of DB9 two. You want one wire from the switch going directly to CH 1 then on the same line you want to connect 1 end of the resistor and the other end of the resistor goes to 3.3v. You don't want to use 5v as that's too much for the Pi GPIO's. This resistor forces 3.3v to GPIO 5 on the Pi so it always reads HIGH, then when you switch the switch it gets pulled down to 0v as the other wire on the switch is going to ground.
Sorry the picture didn't get attached. After you select the image using the "Choose Files" button you have to click the "Add Attachment" button on the right side.