anishkgt
There are two ways to do what you want.
You can sense the voltage between the spot welding contacts.
You can sense the current when the spot welding contacts are shorted.
So think of it this way, When you short the spot welding contacts it turns on a light, The light turning on causes trigger to fire your high current source.
As Hero999 stated you can use a opto-coupler in place of the above light and get isolation from your micro-controller,
So you have an opto-coupler led in series between one connection from transformer and a spot welding contact.
Your high current output switch(SCR's) is connected in parallel to this.
When on the SCR's will cause
1. opto-coupler above to go out, the scr's are placing a short across the opto-coupler input.
2. Enable the high current path to the spot welding contact.
Now the input led of opto-coupler does not turn on at 0 Volts but requires some voltage & current. Here you will need a series resistor to protect the LED from full voltage of transformer. By using a combination of voltage divider and series resistor you can make the turn-on of led higher.
To say the above a different way
You are using a opto-coupler to detect the state of the SCR's when your spot welding contacts are shorted.
You have
spot welding contacts open, opto-coupler output off, SCR's off
spot welding contacts shorted, opto-coupler output on, SCR's off
spot welding contacts shorted, opto-coupler output off, SCR's on
C