Drive 5v relay with 2N2222

Hi @dinesha77
Are you operating a 5V relay with 12V power?

RV mineirin.