What is so difficult about showing us your gnd connection? Or showing us a moderately complete circuit diagram?
- How is G2 connected?
- How are the cathodes of T1 and T2 connnected?
- How are the microcontroller's ground and the high voltage ground connected?
As you show it, the microcontroller is not isolated from the high voltage. There is only a 10 kOhm resistor which is insufficient to ensure safety. This circuit definitely looks dangerous!
Sir here I have attached documents with some modifications please see that & suggest us a circuit.