https://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface  

A setup that works for current sensing using 

SCT 013