i don't see me mentioning about a soldering iron other than those mentioned in my signature.
Yes, it wasn't on the first post, I thought you where telling what you could use...
The input voltage is 31vac, i thought it was about the floating pin i had but i connected the wiper to the floating pin, that did not change the voltage either.
That shouldn't make anything other than improved reliability, as I said, quite important when you are trimming the feedback resistor of an opamp, if it goes open the feedback loop opens and can bring some troubles, in your case isn't needed, and maybe you could detect a failure easier without connecting it, if the pot starts to act up without it connected it will be quite evident.
What is you reading? you should probably be reading about 1.2V, at least with a true RMS meter as yours, as you will have something like a 1.2V square wave. Voltage shouldn't change much while you change that resistor. You should probably put a limiting resistor of at least 600Ω as that will make the maximum current the 50mA the optocoupler is rated for, if you don't have it and you set your pot to minimum it will blow the optocoupler, probably open, making your reading that 31V you have from the source.
If you measure the current at pin 1 or 2 you will see some changes while turning the pot. fig 5 of this datasheet shows the transfer ratio of that current, so after some multi point calibration considering the final resistance you can do some measurements in the output current and determine the input voltage.
http://www.mouser.com/ds/2/239/S_110_LTV-814%20824%20844%20(M,%20S,%20S-TA,%20S-TA1,%20S-TP)%20Se-337200.pdf You should use a much higher resistor, at least 5k6 would keep the current low enough for the optocoupler to manage by it self, you could go even higher. If you use 10k resistor you will have at the output 30mA at 240V, (that's over 5W! on the resistor) and about 0.7mA at 10V. 5W would fry a small resistor or potentiometer even if it lasts a few ms, if you connected this and made it run you had likely burned the pot.
The datasheet only shows currents down to 1mA, it should work a bit under that but the drop could be quite steep, so you should set your minimum useful sense voltage to that point. I'd probably would put the transistor from VCC to a resistor to ground and measure the voltage across the resistor, as the transistor is floating there's nothing wrong doing that.
JS
Sorry, I hadn't seen the last schematic, I saw the last post while posting, you have the optocoupler input shorted in that schematic, you should have it between there and the neutral. Also, the fuse should be right into the live input, in case something goes wrong with the triac, like it shorting to ground while a screw driver went in contact with the PCB.