Interfacing a SSR relay to the arduino

the heating issue is taken care of. I used a CPU heat sink, mount the SSR on the heat sink with cpu thermal compound..that's why I am not sure where the problem is coming from...