SDMCF
You could use the bi directional version
Pololu - ACS714 Current Sensor Carrier -30A to +30A as I'm assuming it's AC you need to measure and control.
This could be used with open energy's library. Hookup should be identical to using a CT and change the calibration value to suit 30A sensor instead of 100A
Steve