Please reference the attached circuit. What is causing the voltage to increase when the switch is closed?
Triac Datasheet
https://www.electro-tech-online.com/custompdfs/2013/02/BTA2008W-600D.pdf
Voltage Regulator Datasheet
https://www.electro-tech-online.com/custompdfs/2013/02/LM317M-DPDF.pdf
Triac Datasheet
https://www.electro-tech-online.com/custompdfs/2013/02/BTA2008W-600D.pdf
Voltage Regulator Datasheet
https://www.electro-tech-online.com/custompdfs/2013/02/LM317M-DPDF.pdf