hi
I can suggest the following idea
1. take analoge signal related to RMS value of curent using curent transformer , this step is the sensing step
2. convert it to digital
3 compare this value with the desired level stored in micro controller - eg. pic16f84a , pic16f877 ,, etc
4.switch on /off acertain relay to connect/ disconnect the 220 ac volt
BR